?? 12.c
字號:
# include "stdlib.h"
main( )
{
int a ,b , c , x=0;
while (x<5)
{
a=rand( )%100 ;
b=rand( )%100 ;
if (a+b >100)
continue;
printf("\n%d+%d=? ",a,b) ;
scanf ("%d",&c);
if (c= =a+b)
{ printf("The answer is rignt ");
x++;
}
else
{ printf( " The answer is wrong!");
x=0;
}
}
printf("\n Program is over.");
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -