首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > C 计算器代码

C 计算器代码

  • 资源大小:2.11 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 软件系统 c 代码 计算器

资 源 简 介

/ * 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 ; 打破 ;

文 件 列 表

CALCULATOR.c
VIP VIP
0.176116s