C 计算器代码
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
/ * mustafasırrıinci * / #include < stdio.h > #include < stdlib.h > #include < math.h > int main () { 浮 int1 int2,结果 ; char 操作 ; printf("CALCULATORn") ; 开始: printf ("nnEnter 两个整数 please.n") ; printf("1.integer:") ; scanf ("%f"& int1) ; printf("2.integer:") ; scanf ("%f"& int2) ; 选择: printf ("nenter 操作的符号。") ; printf ("naddition: + nsubtraction:-nmultiplication: * ndivision: /nexponention: ^ nto 退出:! n") ; scanf ("%s"& 操作) ; 虽然 (操作! = '!') { switch(operation) { 案件 '+': 结果 = int1 + int2 ; 打破 ; 案件 '-': 结果 = int1-int2 ; 打破 ; 案件 ' *': 结果 = int1 * int2 ; 打破 ;
c
代码
计算器
相关源码推荐
pclite
0
0
暂无评分
通用嵌入式FTP客户端
0
0
暂无评分
UDP测试演示
0
0
暂无评分
TMS320F28335 DSP通过SPI 方式与EEPROM 传输数据
0
0
暂无评分
TMS320F28335 CAN通信源码
0
0
暂无评分
暂无评论