编程实现:输入整数a和b,若a2+b2大于100,则输出a2+b2百位以上的数字,否则输出两数之和

问题描述:

编程实现:输入整数a和b,若a2+b2大于100,则输出a2+b2百位以上的数字,否则输出两数之和

#include"stdlib.h" #include"stdio.h" void main(){int a,b;scanf("%d %d",&a,&b);a=a*a;b=b*b;int temp=a+b;if(temp>100){temp/=100;printf("%d\n",temp);}else{printf("%d\n",temp);}}不知道你要的是a的平方+b的...