程序设计基础-2021级 (南京信息工程大学)

  • 实验3 函数

    Task 1 #include<stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++) printf("%d!=%11d\n",i,fac(i
    谢能骏   2021-11-24 16:50   1   12
  • 实验3

    第一题 #include <stdio.h> long long fac(int n); // 函数声明 int main() { int i, n; printf("Enter n: "); scanf_s("%d", &n); for (i = 1; i <= n; ++i) printf("%
    後海不是海王   2021-11-24 13:00   1   20
  • 实验3

    #include <stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n: "); scanf("%d", &n); for (i = 1; i <= n; ++i) printf("%d! = %lld\n",
    unrequited   2021-11-24 12:55   1   14
  • 实验3

    #include<stdio.h> long long fac(int n); int main(){ int i,n; printf("Enter n:"); scanf("%d",&n); for (i=1;i<=n;i++) printf("%d! = %11d\n",i,fac(i)); r
    方振宇   2021-11-24 11:47   0   6
  • 实验3

    实验任务1 1 #include<stdio.h> 2 long long fac(int n); 3 int main(){ 4 int i,n; 5 printf("Enter n: "); 6 scanf("%d",&n); 7 8 for (i=1;i<=n;i++){ 9 printf("
    Konpaukuy   2021-11-24 11:34   2   25
  • 实验三

    #include <stdio.h> void printSymbol(int n, char symbol); // 函数声明 int main() { int n; char symbol; while( scanf("%d %c", &n, &symbol) != EOF ) { printS
    obese   2021-11-24 11:10   0   6
  • 实验三

    任务1 task1.1 源代码 #include<stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n: "); scanf_s("%d", &n); for (i = 1; i <= n; ++i) printf
    彭涌涛   2021-11-24 11:09   1   25
  • 实验三

    task1 #include <stdio.h>long long fac(int n); int main(){ int i, n; printf("Enter n: "); scanf_s("%d", &n); for (i = 1; i <= n; ++i) printf("%d! = %ll
    霍金磊   2021-11-24 11:05   1   8
  • 实验2 C语言分支语句、循环语句应用编程

    实验一: 源码: #include <stdio.h> int main() { int num; scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num); printf("2049%04d\n", num); scanf("%
    gl11639   2021-11-17 09:43   2   17
  • 实验二

    #include<stdio.h> int main() { int num; while(scanf("%d",&num)!= 0) { printf("2049%04d\n",num); } return 0; } #include<stdio.h> int main() { int num;
    谷子航   2021-11-16 23:53   3   13