Answers for "can you use or in while statements c#"

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
1

While loop in c#

int i = 0;
while (i < 20) 
{
  Console.WriteLine(i);
  i++;
}
Posted by: Guest on July-03-2021

Code answers related to "can you use or in while statements c#"

C# Answers by Framework

Browse Popular Code Answers by Language