Monday, October 22, 2018

int a, b;
            int m = 0;
            int num = 1;
            while (num++ > 5) ;
            Console.WriteLine ("plz enter the first num ");
            a = int .Parse (Console.ReadLine());
            Console.WriteLine ("plz enter the second num ");
            b = int.Parse(Console.ReadLine());
            if (a>b){
                m++;
                else
                Console.WriteLine("the first num bigger than the second num ");
            }
            if (a<b){
                Console.WriteLine("the second num bigger than the first num ");
            }
            else
                Console.WriteLine(a=b);
        }
        Console.WriteLine("the num of time a is bigger than b"+ m);
        Console.ReadKey();
    }

No comments:

Post a Comment