Answers for "c#while loop"

C#
5

do while loop in c#

do {
  Console.WriteLine("Emter the magic word");
  magic_string = Console.ReadLine();
  if(magic_string != "please");{
	 Console.WriteLine("{0} is not the corret magic word try again:- ",magic_string );
  }
}while ( magic_string != "please");
Posted by: Guest on October-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language