//************************************** // Name: do while loop // Description:learn the do while loop // By: hatem mostafa ahmed // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** public class Program { public static void Main() { Console.WriteLine("Hello World"); String stryn="" ; int num1, num2 ; do { Console.WriteLine("enter first number"); num1 = int.Parse(Console.ReadLine()); Console.WriteLine("enter first number"); num2 = int.Parse(Console.ReadLine()); int result= num1+num2; Console.WriteLine("=========="); Console.WriteLine(result); Console.WriteLine("=========="); Console.WriteLine(" do you want to do it again (y/n)"); stryn =Console.ReadLine() ; } while(stryn=="y"||stryn=="Y"); } }