# include<stdio.h>
# include<math.h>
# include<stdlib.h>
int main(void)
{
int a,b,sum;
a = 0;
b = 0;
sum = 0;
printf("please input a,b :) separated by Spaces\n");
while(~scanf("%d %d",&a,&b))
{
if ( a<= pow(2,10) && b<= pow(2,10))
{
sum = a + b;
}
else{
printf("illegal input");
exit(0);
}
printf("%d + %d = %d\n",a,b,sum);
}
return 0;
}
0.0分
3 人评分
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:608 |
C语言考试练习题_保留字母 (C语言代码)浏览:514 |
简单的a+b (C语言代码)浏览:566 |
C语言训练-立方和不等式 (C语言代码)浏览:684 |
【回文数(二)】 (C语言代码)浏览:670 |
A+B for Input-Output Practice (C++代码)浏览:561 |
c primer plus 第十二章 12.1小节浏览:354 |
最长单词 (C语言代码)浏览:1147 |
C语言训练-排序问题<1> (C语言代码)浏览:561 |
妹子杀手的故事 (C语言代码)浏览:1021 |