当前位置:网站首页>Basic types of 100 questions for basic grammar of Niuke
Basic types of 100 questions for basic grammar of Niuke
2022-07-08 00:40:00 【InfoQ】
Niuke basic grammar must be brushed 100 Basic types of questions
BC3 Niuniu learns to speak - Integers
describe
Input description :
Output description :
Example 1
3
3
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
System.out.println(a);
}
}
BC4 Niuniu learns to speak - Floating point numbers
describe
Input description :
Output description :
Example 1
1.359578
1.360
import java.util.Scanner;
public class Main{
public static void main(String[] args){
float a;
Scanner sc=new Scanner(System.in);
a=sc.nextFloat();
System.out.println(String.format("%.3f",a));
}
}
BC5 Niuniu learns to speak - character
describe
Input description :
Output description :
Example 1
a
a
import java.util.Scanner;
public class Main{
public static void main(String[] args){
String c;
Scanner sc=new Scanner(System.in);
c=sc.nextLine();
System.out.println(c);
}
}
BC6 The second integer of Niuniu
describe
Input description :
Output description :
Example 1
1 2 3
2
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int a[]=new int[3];
for(int i=0;i<a.length;i++){
a[i]=in.nextInt();
}
System.out.println(a[1]);
}
}
边栏推荐
- 3 years of experience, can't you get 20K for the interview and test post? Such a hole?
- Notice on organizing the second round of the Southwest Division (Sichuan) of the 2021-2022 National Youth electronic information intelligent innovation competition
- 5g NR system messages
- 【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
- 服务器防御DDOS的方法,杭州高防IP段103.219.39.x
- Summary of the third course of weidongshan
- Is it safe to open an account on the official website of Huatai Securities?
- 5G NR 系统消息
- NVIDIA Jetson测试安装yolox过程记录
- [C language] objective questions - knowledge points
猜你喜欢
Jouer sonar
DNS series (I): why does the updated DNS record not take effect?
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
深潜Kotlin协程(二十二):Flow的处理
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
搭建ADG过程中复制报错 RMAN-03009 ORA-03113
QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
52岁的周鸿祎,还年轻吗?
NVIDIA Jetson测试安装yolox过程记录
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
随机推荐
应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
Kubernetes static pod (static POD)
Vscode software
CVE-2022-28346:Django SQL注入漏洞
Reptile practice (VIII): reptile expression pack
The underlying principles and templates of new and delete
詹姆斯·格雷克《信息简史》读后感记录
Summary of weidongshan phase II course content
攻防世界Web进阶区unserialize3题解
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
LeetCode刷题
A brief history of information by James Gleick
What if the testing process is not perfect and the development is not active?
1293_FreeRTOS中xTaskResumeAll()接口的实现分析
8道经典C语言指针笔试题解析
What is load balancing? How does DNS achieve load balancing?
22年秋招心得
Development of a horse tourism website (realization of login, registration and exit function)
【笔记】常见组合滤波电路
Deep dive kotlin synergy (XXII): flow treatment