Tuesday 10 September 2013

What is While -loop?

Que:- What is While -loop?

Ans:- The While-loop starts and end with curly braces that contain some code.Everything inside will continuously run while a statement is true. For example ..
let's make a program that continuously prints "Amazing" endlessly.The endlessly loop has no ending so it will be true".
Using System;
Using Microsoft.SPOT;
namespace MFConsoleApplication
{
Public class program
{
public static void  Main()
{
while(true)
{
debug.print("Amazing");
}
}
}
}

No comments:

Post a Comment