While Statement or While loop C Programming /*The easiest way to use while statement or while loop*/ #include< stdio.h > #include< conio.h > void main() { int i,s=0; clrscr(); i=1; while(i<=10) { printf("\n I=%d",i); s = s + i; i++; } getch(); } Output is as : I=1 I=2 I=3 I=4 I=5 I=6 I=7 I=8 I=9 I=10 Read more » Tweet Share Share Share Share Related Post for Statement or for loop /*Write a Program to print the 1 To 10 Numbers using for loop*/ #include #include void main() { Nested for loop statement /*Write a Program to print the below output using nested for loop * ** *** **** ***** */ #incluWrite a program to convert this temperature into centigrade degree Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to condo Statement or do loop /*Write a Program to print the 1 To 10 Numbers using do loop*/ #include #include void main() {
ConversionConversion EmoticonEmoticon