1 Star 0 Fork 0

besti1923/JAVA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
calculator.java 715 Bytes
一键复制 编辑 原始数据 按行查看 历史
yifei 提交于 5年前 . the second experiment
package text.java;
import java.util.Scanner;
public class calculator {
public static void main(String[] args) {
float n, m;
char k;
Scanner scan = new Scanner(System.in);
System.out.println("please enter the number of m");
m = scan.nextFloat();
System.out.println("please enter the number of n");
n = scan.nextFloat();
System.out.println("Hello,please enter the algorithm of the two numbers.enter the \"q\"to quit");
k = scan.next().charAt(0);
a s;
s =new a(m,n,k);
while(k!='q'){
System.out.println(s.count(m,n,k));
k = scan.next().charAt(0);
s=new a(m,n,k);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/besti1923/java.git
git@gitee.com:besti1923/java.git
besti1923
java
JAVA
master

搜索帮助