#include"stdio.h" #include<conio.h> void main() { int a,i,n=30; printf("Odd value till 30 are: \n\n"); a=30/2; for(i=0;i<=n;i++) { if(i%2==1) { if(i==1) printf(" "); else printf("%d ",i); } } getch(); }
Post a Comment
No comments:
Post a Comment