Computer Science, asked by khushi1343, 1 year ago

write a program on do while loop and while loop

Answers

Answered by MrTSR
5
\huge\mathfrak\red{Answer:-}

\large\underline\mathtt{WHILE \: LOOP}
<b>
#include <stdio.h>
int main( )
{
int count=1;
while (count <= 4)
{
printf("%d ", count);
count++;
}
return 0;
}

\large\underline\mathtt{DO \: WHILE \: LOOP}

&lt;b&gt;
#include <stdio.h>
int main( )
{
int var=1;
while (var <=2)
{
printf("%d ", var);
}
}
Answered by ritik12336
1
heYa !!!!!!


your answer

thanks
Attachments:
Similar questions