Hi
Good Morning Follows
_________________
am trying to write a program to get a number from user and then print even numbers as well as 0,2,4 and so on
what changes i should do ? any tips or hints will be useful
PHP Code:
# include <iostream>
using namespace std;
int main () {
int n,i;
cout << " Enter number ";
cin >>n;
i = 0;
while ( i%2 == n) {
cout <<i<<" ";
i = i+1;
}
system ("PAUSE");
return 0;
}






Reply With Quote
