码迷,mamicode.com
首页 > 微信 > 详细

二狗的小程序

时间:2018-10-08 00:36:37      阅读:405      评论:0      收藏:0      [点我收藏+]

标签:stdio.h   ==   int   lib   include   and   ++   i++   printf   

#include <stdio.h>
#include <stdlib.h>
main()
{
int i;
for(i=0;i<30;i++)
{
int a,b,c;
a=0;
while(a%10==0)
{
a=rand()%90+10;
}
b=0;
while(b%10==0)
{
b=rand()%90+10;
}
c=0;
while(c%10==0)
{
c=rand()%100;
}
printf("%d+%d×%d=?\n",a,b,c);
}
return 0;
}

二狗的小程序

标签:stdio.h   ==   int   lib   include   and   ++   i++   printf   

原文地址:https://www.cnblogs.com/stfly/p/9752015.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!