Syntax of while loop in C sharp
Write the syntax of the while loop in the C# program.
Expert
Syntax of the while loop in the C# is as follows:
while(condition) //condition
{
//statements
}
An example of the while loop in C# is:
int i = 0;
while(i < 5)
Console.WriteLine("{0} ", i);
i++;
Ooutput of the above code is: 0 1 2 3 4.
Distinguish between the .EXE and .DLL files?
List the usages of Command object in ADO.NET?
Differentiate between object-oriented programming and procedural?
Illustrate the reason in brief why WPF is used?
Define .NET Framework?
How can we programmatically place a cursor on the given line or on the character in a RichTextBox control in the C#?
Elucidate the term Windows authentication?
What is the function of DialogResult property of the Button control?
Which method is used to kill explicitly the users session?
What are XML attribute?
18,76,764
1954124 Asked
3,689
Active Tutors
1425743
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!