当前位置:网站首页>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]);
}
}
边栏推荐
- 从服务器到云托管,到底经历了什么?
- Cause analysis and solution of too laggy page of [test interview questions]
- Smart regulation enters the market, where will meituan and other Internet service platforms go
- 深潜Kotlin协程(二十三 完结篇):SharedFlow 和 StateFlow
- Kubernetes static pod (static POD)
- QT establish signal slots between different classes and transfer parameters
- 3年经验,面试测试岗20K都拿不到了吗?这么坑?
- 哪个券商公司开户佣金低又安全,又靠谱
- 韦东山第三期课程内容概要
- 【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
猜你喜欢

他们齐聚 2022 ECUG Con,只为「中国技术力量」

How to insert highlighted code blocks in WPS and word

51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up

基于卷积神经网络的恶意软件检测方法

Smart regulation enters the market, where will meituan and other Internet service platforms go

Binder核心API

Reptile practice (VIII): reptile expression pack

玩转Sonar

大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?

Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
随机推荐
tourist的NTT模板
Operating system principle --- summary of interview knowledge points
5G NR 系统消息
[研发人员必备]paddle 如何制作自己的数据集,并显示。
Which securities company has a low, safe and reliable account opening commission
Flask learning record 000: error summary
How can CSDN indent the first line of a paragraph by 2 characters?
Hotel
取消select的默认样式的向下箭头和设置select默认字样
new和delete的底层原理以及模板
炒股开户怎么最方便,手机上开户安全吗
基于微信小程序开发的我最在行的小游戏
Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
Installation and configuration of sublime Text3
8道经典C语言指针笔试题解析
paddle入门-使用LeNet在MNIST实现图像分类方法一
Kubernetes Static Pod (静态Pod)
【笔记】常见组合滤波电路
The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
Interface test advanced interface script use - apipost (pre / post execution script)