//Write a program to print 35 term of odd number using do while #include<stdio.h> #include<conio.h> void main() { int x=1; clrscr(); do { printf("%d",x);//Print number 1, 3, 5, ......69 x=x+2; } while(x<=70);//70 has 35 odd and 35 even getch(); }
Take Pure Information, Always Original Content
//Write a program to print 35 term of odd number using do while #include<stdio.h> #include<conio.h> void main() { int x=1; clrscr(); do { printf("%d",x);//Print number 1, 3, 5, ......69 x=x+2; } while(x<=70);//70 has 35 odd and 35 even getch(); }
Comments
Post a Comment