#include
int main()
{
int a;
scanf("%d",&a);//输入数字
printf("%d\n%d",a*5,a*10);//输出5倍和10倍
return 0;
}
把输入的数分别乘以5和10,就是所求
#include
int main()
{
int a;
scanf("%d",&a);
printf("%d\n%d",a*5,a*10);
return 0;
}
程序如下:
#include
main()
{
int i ;
printf("please input a number:");
scanf("%d",&i);
printf("the 5 twice of i is :%d",5*i);
printf("the 10 twice of i is :%d",10*i);
}
#include
main()
{ int a;
scanf("%d",&a);
printf("a*5=%ld,a*10=%ld",a*5,a*10);
}
#include
int main(void)
{
int a;
scanf("%d",&a);
printf("%d\n%d",a*5,a*10);
return 0;
}