事燃so释然
本人小白,练习麻烦大佬帮忙找找问题

本帖最后由 断乱 于 2019-10-11 14:59 编辑

#include<stdio.h>

#include<stdlib.h>

#include<time.h>

#define _CRT_SECURE_NO_WARNINGS

int main(){

int now;

int nob = 0;

srand((unsigned)time(NULL));

do{

int a,b;

a=rand()%100;

b=rand()%100;

printf("请问,%d+%d=?\n"a,b);

scanf("%d",&now);

int c=a+b;

if(nob != 0){

if(now == c){

printf("聪明!\n");

break;

};

printf("你是不是傻,错这么多次!\n\n");

};

nob=1;

}while(now != c);

return;

}

麻烦各位大佬帮帮忙!!!

wugy315
标准的寻求帮助
展开Biu

标准的寻求帮助,应该描述清楚碰到了什么问题。然后贴上代码、日志输出和运行环境

[查看全文]