Saturday, 31 March 2012

Looking for an odd number of 1-10

#include <iostream>
#include <string>

using namespace std;
int main()
{
   int i;
   i =1;
   while (!(i>10))
   {
if (i % 2==0)
{
}
      else
      {
         cout << i << endl; }
      i =i+1;
   }

   system("pause");

}

0 comments:

Post a Comment

.

.

.

.
Design by BlogSpotDesign | Ngetik Dot Com