问题描述:
用C语言写一个程序 就是后面输出1+1=?然后输入2对了·然后又进行下一个题·2+2=?然后对了 在进行下面的
1+1··的是举例子的 可以是其他的题·答案就只有一个·用C语言的就ok了·
#include
#include
#include
void main()
{ char x[50],c[50]="hahaha",a[50]="c";
system("graftabl 936");
clrscr();
printf("\nI want you to come __our trip __Beijing");
printf("\nA. for ,for B. on, to C. on, for D. to, on");
printf("\答案:");
scanf("%s",x);
if(!strcmp(a,x))
{
printf("\下一题");
getch();
}
是想这个样子的·然后再继续加题·
1+1··的是举例子的 可以是其他的题·答案就只有一个·用C语言的就ok了·
#include
#include
#include
void main()
{ char x[50],c[50]="hahaha",a[50]="c";
system("graftabl 936");
clrscr();
printf("\nI want you to come __our trip __Beijing");
printf("\nA. for ,for B. on, to C. on, for D. to, on");
printf("\答案:");
scanf("%s",x);
if(!strcmp(a,x))
{
printf("\下一题");
getch();
}
是想这个样子的·然后再继续加题·
问题解答:
我来补答展开全文阅读