当前位置:网站首页>Real variable instance
Real variable instance
2022-06-25 14:46:00 【m0_ fifty-nine million nine hundred and forty-nine thousand fou】
1、1.0/3*3 How much ?
#include <stdio.h>
void main()
{
float a, b, c,d;
a = 1.0;
b = 3;
c = 3;
d = a / b * c;
printf("a / b * c=%f\n", d);
}
Execution results :a / b * c=1.000000
2、3/2= How many? ?
#include <stdio.h>
void main()
{
float a, b, c;
a = 3;
b = 2;
c = a / b;
printf("a / b =%f\n", c);
}
Execution results :a / b =1.500000
3、1/3*3 How much ?
#include <stdio.h>
void main()
{
float a, b, c, d;
a = 1;
b = 3;
c = 3;
d = a / b * c;
printf("a / b * c=%f\n", d);
}
Execution results :a / b * c=1.000000
边栏推荐
- Shell built-in commands
- 【深度学习】多标签学习
- Customization and encapsulation of go language zap library logger
- About reconnection of STM32 using lan8720a plug-in network cable
- Let and const commands
- Renix Perf: IP网络性能测试工具及测试用例参数详解
- JS recursion and while
- JS get the height and width corresponding to the box model (window.getcomputedstyle, dom.getboundingclientrect)
- Stream竟然还有应用进阶学习?作为程序员的你知道吗
- Custom instruction, mixing, routing, lifecycle
猜你喜欢
'NVIDIA SMI' is not an internal or external command, nor is it a runnable program or batch file
JS component
Power automatic test system nsat-8000, accurate, high-speed and reliable power test equipment
Shell array
Share the code technology points and software usage of socket multi client communication
搭建极简GB28181 网守和网关服务器,建立AI推理和3d服务场景,然后开源代码(一)
如何裁剪动图大小?试试这个在线照片裁剪工具
shell 变量 入门
重磅!国产 IDE 发布,由阿里研发,完全开源!(高性能+高定制性)
电源自动测试系统NSAT-8000,精准高速可靠的电源测试设备
随机推荐
Add the resources directory under test in idea
H5 page graying source code, ie compatible (elegant downgrade provides download browser link)
Uniapp icon configuration
Master XSS completely from 0 to 1
还没弄明白微服务数据架构事务管理+ACID+一致性+CAP+BASE理论吗,看完彻底解决疑惑
Mutationobserver listens for DOM changes
90 后眼中的理想 L9:最简单的产品哲学,造最猛的爆款 | 指南斟
Biscuit distribution
[try to hack] vulhub shooting range construction
程序員為什麼要軟一點?
合宙Air32F103CBT6开发板上手报告
Deploy eve-ng with KVM virtualization
What is the difference between escape, encodeuri and encodeuricomponent?
买基金在哪里开户安全?求指导
Output 0 ~ n digits and output multiple times
Garbage collection mechanism
Summary of common functions in Oracle Database
有哪个瞬间让你觉得这个世界出bug了?
Uniapp cloud packaging app
NBD Network Block Device