Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. int i = 1;
  4. while (i < 11)
  5. {
  6. Console.WriteLine(i+"* 7 = ");
  7. int a = Int32.Parse(Console.ReadLine());
  8. String c;
  9. if (a == i * 7)
  10. Console.WriteLine("правильно");
  11. else if (c = Int32.Parse(a) == "дальше") // тут не хочет приобразовывать инт в стринг
  12. continue;
  13. else
  14. Console.WriteLine("нет, ответ равен = " + i * 7);
  15.  
  16. i++;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement