Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace test1
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- int a = Convert.ToInt32 (Console.ReadLine ());
- int schet = Convert.ToInt32 (Console.ReadLine ());
- int per = 0;
- Console.WriteLine ("______________");
- Console.WriteLine (a);
- for (int i = 0; i < schet; i++)
- {
- Console.WriteLine (per = a + 1);
- Console.WriteLine (a);
- Console.WriteLine (per = a + per);
- Console.WriteLine (per + 1);
- Console.WriteLine (per);
- Console.WriteLine (per = per+2);
- Console.WriteLine (per = per+1);
- Console.WriteLine (per = per-1);
- a = per;
- }
- Console.ReadKey ();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement