10-20以内的加法C程序
来源:百度知道 编辑:UC知道 时间:2024/05/19 13:24:59
#include <stdio.h>
void main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a+b);
}
如果是用TC或者是UNIX下的CC,把void去掉。
#include <math.h>
main
{
int a,b,c
c=a+b
printf(%d,c)
}
大概应该就这样
如果想要交互式的话应该再加上一些输入输出函数。