#include<stdio.h>int main(){ int n = 1; int i = 1; int ret = 1; scanf_s("%d", &n); for (i = 1; i <= n; i++) { ret = ret * i; printf("ret=%d\n", ret); } return 0;}
#include<stdio.h>int main(){ char x = 'a'; int ch = 0; scanf_s("%c", &x); if (ch >='A' || ch <='Z') x = x + 32; printf("%c\n", x); return 0;}
#include<stdio.h>int main(){ int a = 1; while (a <= 10) { printf("%d", a); a++; } return 0;}
#include<stdio.h>int main(){ int x=1; while(x<=100) { if(x%2==1) printf("%d",x); x++; } return 0; }
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号