摘要: 算法例题 求1 x 2 x 3 x 4 x 5 #include<stdio.h> int main() { int i,t; t=1; i=2; while (i<=5) { t=t*i; i=i+1; } printf("%d\n",t); return 0; { 求1 x 3 x 5 x 7 阅读全文
posted @ 2024-11-22 13:11 OrianaGuo 阅读(32) 评论(0) 推荐(0)
摘要: 入门例题 在屏幕上输入一行信息 #include <stdio.h> int main() { printf("This is a C program.\n"); return 0; } 求两个整数之和 #include<stdio.h> int main() { int a,b,sum; a=12 阅读全文
posted @ 2024-11-22 11:56 OrianaGuo 阅读(37) 评论(0) 推荐(0)