Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

do while loop in c#

# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A

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");
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
8+7 =