This repo is my practice for 中国大学MOOC-翁恺-C语言程序设计习题集 on PAT. The website is . id title 02-0 整数四则运算(10) 02-1 厘米换算英尺英寸(15) 02-2 然后是几点(15) 02-3 逆序的三位数(10) 02-4 BCD...
万想的博客 } 4.3统计素数并求和 #include int main() { int M, N; scanf("%d %d", &M, &N); int count = 0; int sum = 0; int x = M; while (x ) { int number = 0; int y = 1; while (y ) { if (x % y == 0) { number++; } y...
爱敲代码的Harrison的博客MOOC—翁凯C程序设计入门 第一周:程序设计和C语言 1、竖着输出I Love GPLT(每行只能有一个字符或者一个空格): #include int main(){ char str[]="I Love GPLT"; int len=sizeof(str); int i; char c; for(i=0;i;...