当前位置:网站首页>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]);
}
}
边栏推荐
- Scrapy framework
- 快速上手使用本地测试工具postman
- 从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
- What has happened from server to cloud hosting?
- C language 001: download, install, create the first C project and execute the first C language program of CodeBlocks
- Leetcode brush questions
- ABAP ALV LVC template
- Summary of weidongshan phase II course content
- CVE-2022-28346:Django SQL注入漏洞
- How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
猜你喜欢

接口测试要测试什么?

Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department

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

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

腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道

Is Zhou Hongyi, 52, still young?

Course of causality, taught by Jonas Peters, University of Copenhagen

深潜Kotlin协程(二十二):Flow的处理

new和delete的底层原理以及模板

Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
随机推荐
Leetcode brush questions
NVIDIA Jetson测试安装yolox过程记录
Course of causality, taught by Jonas Peters, University of Copenhagen
【测试面试题】页面很卡的原因分析及解决方案
[研发人员必备]paddle 如何制作自己的数据集,并显示。
ReentrantLock 公平锁源码 第0篇
詹姆斯·格雷克《信息简史》读后感记录
How to learn a new technology (programming language)
从服务器到云托管,到底经历了什么?
华泰证券官方网站开户安全吗?
Su embedded training - day4
Codeforces Round #804 (Div. 2)(A~D)
Smart regulation enters the market, where will meituan and other Internet service platforms go
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
某马旅游网站开发(登录注册退出功能的实现)
RPA cloud computer, let RPA out of the box with unlimited computing power?
ABAP ALV LVC模板
redis你到底懂不懂之list
Handwriting a simulated reentrantlock
Binder核心API