输入入门
#include <stdio.h>int main(int argc, char *argv[])
{
int a,b,t;
scanf("%d",&t);
while(t--)
{
scanf("%d%d",&a,&b);
printf("%d\n",a+b);
}
return 0;
}
求各代码解释
以及附件中的条件该如何编程
2019-10-11 22:21
程序代码:#include <stdio.h>
#include <math.h>
int main( void )
{
unsigned n;
if( scanf("%u",&n) == 1 )
{
printf( "%.3f %u\n", sqrt(n), n*n*n );
}
}
2019-10-12 10:53

2019-10-12 22:32