11 个解决方案
#1
(a*a+b*b)/100
#2
++
#3
(a*a+b*b)/1000
#4
plus
#5
一楼正解!
#6
#include <stdio.h>
void main()
{
int a,b,c,bai;
scanf("%d%d",&a,&b);
c = a*a+b*b;
if ( c > 10 )
{
bai = c/100;
printf("%d\n",bai);
}
else
printf("不大于10\n");
}
#7
正解
#8
#include <stdio.h>
void main()
{
int a,b,c,bai;
scanf("%d%d",&a,&b);
c = a*a+b*b;
if ( c > 100 )//表明这个数是100以上
{
bai = c/100;
printf("%d\n",bai);
}
else
printf("不大于10\n");
}
#9
++
#10
printf("%d", (sum=a*a+b*b)>100?sum:-1);
#11
没看清题目,不好意思!!
int sum;
printf("%d", (sum=a*a+b*b)>10?sum%100:-1);
int sum;
printf("%d", (sum=a*a+b*b)>10?sum%100:-1);
#1
(a*a+b*b)/100
#2
++
#3
(a*a+b*b)/1000
#4
plus
#5
一楼正解!
#6
#include <stdio.h>
void main()
{
int a,b,c,bai;
scanf("%d%d",&a,&b);
c = a*a+b*b;
if ( c > 10 )
{
bai = c/100;
printf("%d\n",bai);
}
else
printf("不大于10\n");
}
#7
正解
#8
#include <stdio.h>
void main()
{
int a,b,c,bai;
scanf("%d%d",&a,&b);
c = a*a+b*b;
if ( c > 100 )//表明这个数是100以上
{
bai = c/100;
printf("%d\n",bai);
}
else
printf("不大于10\n");
}
#9
++
#10
printf("%d", (sum=a*a+b*b)>100?sum:-1);
#11
没看清题目,不好意思!!
int sum;
printf("%d", (sum=a*a+b*b)>10?sum%100:-1);
int sum;
printf("%d", (sum=a*a+b*b)>10?sum%100:-1);