当前位置:网站首页>输入和输出实型数据
输入和输出实型数据
2022-06-28 19:51:00 【Zaltana】
编写一个程序,用户输入一个float型数据和一个double型数据,存储在变量中,并输出在屏幕上
输入:3.1234 4.5
输出:You entered:3.12 and 4.500
#include<bits/stdc++.h>
using namespace std;
int main( )
{
float a;
double b;
scanf("%f",&a);
scanf("%lf",&b);
printf("You entered:%0.2f and %0.3lf",a,b) ;
return 0;
}边栏推荐
- Leetcode week 299
- 请允许当下国内ToB的「不完美」
- Day88.七牛云: 房源图片、用户头像上传
- Demo of integrated development of intelligent computing system 3 plugin
- Day88. qiniu cloud: upload house source pictures and user avatars
- echart:横向柱状图的类目文字位置调整
- internship:术语了解及着手写接口
- jsp中获取session中的值
- Troubleshooting of pyinstaller failed to pack pikepdf
- Lecture 30 linear algebra Lecture 4 linear equations
猜你喜欢

Paper notes: universal value function approvers

集合之ArrayList

5G NR MBS架构介绍

如何获取飞机穿过雷达两端的坐标

Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?

Xiaobai's e-commerce business is very important to choose the right mall system!

2022年P气瓶充装考试练习题及在线模拟考试
![return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};

Why is it not enough to declare the structure alias when using the structure variable of other files in C language, and the proper name must be used? (cannot add struct when using alias)

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
随机推荐
Markdown Mermaid Grass (1) Introduction à Mermaid
R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
Shell reads the value of the JSON file
easypoi
阿里开源(EasyExcel)
输入分隔符
How does redis implement inventory deduction? How to prevent oversold?
2837. The total number of teams
Pipeline | and redirection >
Machine learning notes temperature+softmax
Day88. qiniu cloud: upload house source pictures and user avatars
Analysis of all knowledge points of TCP protocol in network planning
2022茶艺师(中级)考试模拟100题及模拟考试
Variational graph auto-encoders (VGAE)
圆球等的相关计算
522. longest special sequence II (greedy & double pointer)
odoo15 Module operations are not possible at this time, please try again later or contact your syste
2022 tea master (intermediate) examination simulated 100 questions and simulated examination
如何做好客户成功的底层设计|ToB大师课
《数据安全法》出台一周年,看哪四大变化来袭?