0
can we write console.weiteline after the do while loop?Explain
5 Answers
+ 1
int x = 5;
do
{
x++;
}while(x < 10);
Console.WriteLine("The value of x is {0}, x);
//
You can add almost anything after anything. Asqell as inside.
+ 1
Let's put it this way... you can put anything after any statement and unless anything preceding one line doesn't already return a value or explicitly tells the function to stop, your code will continue to execute until it reaches the last line in a method.
0
YES YOU MAY.
You may add any number of CWL after your do-while loop đ
0
you can use as per your requirement in the application
0
Yes. You can keep writing code after the loop.
But you cant use Console .weiteline
Syntax error! đđđ