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();
    }

Saturday, October 20, 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main(string[] args)
        {
            int ball;
            int m;

            Console.WriteLine("plz enter number the ball");
            ball = int.Parse(Console.ReadLine());
            m = ball / 20;

            if (ball > m)
                Console.WriteLine("the plus " + (m + 1));
else 
console.write line (c);
            Console.ReadKey();


        }
    }
}