首页 > 其他分享 >10.3

10.3

时间:2022-10-03 15:00:08浏览次数:37  
标签:10.3 int scanf d% printf 100

int x;

int y;

int n;

printf("请输入两个整数:");

 scanf_s("%d", & x);

 scanf_s("%d", &y);

 n = (x / y) * y + x % y;

 printf("%d\n", n);



int n;

int m;

scanf_s("%d%d", &n, &m);

printf("%d%%", (n*100) /m );

标签:10.3,int,scanf,d%,printf,100
From: https://blog.51cto.com/u_15758636/5730273

相关文章