What is the output of the following code Int count 1 while
What is the output of the following code ? Int count = 1; while (count
Solution
int count = 1;
while(count < 5) This runs for values from 1, 2, 3, and 4.
{
cout <<\"$\"<<count<<\".00\"<<endl;
count++;
}
//For every value the line will be printed as: $num.00
//So, the output is:
$1.00
$2.00
$3.00
$4.00
