Thursday, 18 July 2013



#include "stdafx.h"
#include "conio.h"
#include "iostream"
#include "stdio.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
       int n1,n2,c;
       cout<<"enter range";
       cin>>n1>>n2;
       c=n1;
       while(c<=n2)
       {
              if(c%2!=0)
              cout<<c<<endl;
              c++;
       }
       getch();

}
Reactions:

0 comments :

Post a Comment