使用我的猜测数字程序,当我试图运行它告诉我变量“数字”是没有定义的。如果有人来帮助我,我会很感激的!format(number)) print ("It took you {0} guesses".format(guesses))
print("Welcome to guess the number"
所以我做了这个练习,我需要让用户输入2个输入(分数>0 <10),然后我必须打印平均值,然后询问用户是否想插入更多的1级-是的2-否;如果是1,那么程序再次运行,如果是2,程序退出。Defines the entry point for the console application.#include <iostream> int g;