当前位置:网站首页>7-6 mixed type data format input
7-6 mixed type data format input
2022-07-03 14:14:00 【Big fish】
This question requires the preparation of procedures , Read in floating-point numbers in order 1、 Integers 、 character 、 Floating point numbers 2, And then according to the character 、 Integers 、 Floating point numbers 1、 Floating point numbers 2 Sequential output .
Input format :
Enter floating-point numbers in order in one line 1、 Integers 、 character 、 Floating point numbers 2, In the meantime 1 Space separation .
Output format :
In a line by character 、 Integers 、 Floating point numbers 1、 Floating point numbers 2 Sequential output , Floating point numbers are reserved after the decimal point 2 position .
sample input :
2.12 88 c 4.7
sample output :
c 88 2.12 4.70
c The language code is as follows :
#include<stdio.h>
int main()
{
double a;// Start floating point assignment float Type causes errors , Change it to double Two decimal places can be reserved after type
int b;
char e;
double d;
scanf("%lf %d %c %lf",&a,&b,&e,&d);// The input floating-point type is %lf type
printf("%c %d %.2f %.2f",e,b,a,d);
return 0;
}
边栏推荐
- Back to top implementation
- Configure stylelint
- MongoDB数据库入门的常用命令
- Exercise 8-2 calculate the sum and difference of two numbers
- Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
- 可编程逻辑器件软件测试
- 战略、战术(和 OKR)
- Collection of mobile adaptation related articles
- Mysql多表查询 #子查询
- [acnoi2022] guess numbers
猜你喜欢
玖逸云黑免费无加密版本源码
jvm-类加载
Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them
Exercise 9-3 plane vector addition
Exercise 10-1 calculate the sum of 1 to n using recursive functions
[Jilin University] information sharing of postgraduate entrance examination and re examination
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
npm install卡住与node-npy的各种奇怪报错
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
Redis:字符串类型数据的操作命令
随机推荐
JS matrix zero
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
Onmenusharetimeline custom shared content is invalid, and the title and icon are not displayed
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
concat和concat_ws()区别及group_concat()和repeat()函数的使用
JS general form submission 1-onsubmit
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Installation impression notes
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
MIL-100( Fe) 包裹小分子阿司匹林形成[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)
Solve the problem of dormitory router campus network sharing login
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
How to bold text in AI
JVM object lifecycle
Similarities and differences of sessionstorage, localstorage and cookies
x86汇编语言-从实模式到保护模式 笔记
玖逸云黑免费无加密版本源码