Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
#include<stdlib.h>
#include<time.h>
int main()
{
int x,y,s,t=0,i;
srand((int)(time(0)));
for(i=1; i<=10; i++)
{
do
{
x=rand()%181+20;
y=rand()%8+2;
} while(x%y);
printf("%d/%d=",x,y);
printf("Please input the answer:\n");
scanf("%d",&s);
if(s==x/y)
{
t+=10;
printf("Ok !\n");
}
else
printf("Error !\n");
}
printf("score=%d\n",t);
return 0;
}