当前位置:网站首页>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.70c 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;
}
边栏推荐
- Solution to failure or slow downloading of electron when electron uses electron builder to package
- fpga阻塞赋值和非阻塞赋值
- Redis: redis data structure and key operation commands
- Exercise 10-1 judge the three digits that meet the conditions
- Analysis of the characteristics of page owner
- concat和concat_ws()区别及group_concat()和repeat()函数的使用
- Redis:字符串類型數據的操作命令
- JS Part 2
- 虽然不一定最优秀,但一定是最努力的!
- [combinatorics] permutation and combination (examples of combinatorial number of multiple sets | three counting models | selection problem | combinatorial problem of multiple sets | nonnegative intege
猜你喜欢

TS code automatically generates JS

Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not

信创产业现状、分析与预测

Example analysis of QT learning 18 login dialog box

Vite project commissioning

Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)

Generate directories from web content

全局事件总线

Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
随机推荐
虽然不一定最优秀,但一定是最努力的!
Toast UI editor (editor allows you to edit your markup document using text or WYSIWYG, with syntax highlighting, scrolling synchronization, real-time preview and chart functions.)
Solve the problem of dormitory router campus network sharing login
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
FPGA test method takes mentor tool as an example
全局事件总线
中国PETG市场预测及战略研究报告(2022版)
FPGA测试方法以Mentor工具为例
PCB中常用快捷键
7-9 find a small ball with a balance
Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride(
concat和concat_ws()区别及group_concat()和repeat()函数的使用
Jiuyi cloud black free encryption free version source code
Common plug-ins for vite project development
小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
Example analysis of QT learning 18 login dialog box
Leetcode(4)——尋找兩個正序數組的中比特數
Redis:字符串类型数据的操作命令
npm install卡住与node-npy的各种奇怪报错
Similarities and differences of sessionstorage, localstorage and cookies