Printing of Odd Number

Wednesday, 7 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
   int t=0;
   clrscr();
   while(t<=10)
   {
        t++;
        if(t%2)
    continue;
  
    printf("%d\t",t);
   }
getch();
}


OUTPUT:


2   4   6   8   10




No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading