问答题
编写一个程序,用循环结构输出以下图形。
【参考答案】
#include<stdio.h>
#include<string.h>
void main() ......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
问答题
C盘中P1.c.txt文件的内容为:abcde。A盘中P1.c.txt为空文档。 #include<stdio.h> #include<stdlib.h> main() FILE *f1,*f2; int k; if((fl=fopen( C: p1.c.txt , r ))==NULL) printf( can not open file! n ); exit(0); if((f2=fopen( A: p1.c.txt , w ))==NULL) printf( can not open file! n ); exit(0); for(k=1;k<=500;k++) if(feof(f1))break; fputc(fgetc(f1),f2); printf( 成功实现复制 ); fclose(f1); fclose(f2);
点击查看答案
问答题
根据Fibonacci数列公式: 计算并输出前20项之和。
点击查看答案
相关试题
输入一个正整数,若是素数(或称质数)则输...