Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int i = 1;
- while (i < 11)
- {
- Console.WriteLine(i+"* 7 = ");
- int a = Int32.Parse(Console.ReadLine());
- String c;
- if (a == i * 7)
- Console.WriteLine("правильно");
- else if (c = Int32.Parse(a) == "дальше") // тут не хочет приобразовывать инт в стринг
- continue;
- else
- Console.WriteLine("нет, ответ равен = " + i * 7);
- i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement