0
int num; //initializing variable that stores user's input cin>>num; //input number from user for(int even=0; even<=num; even+=2){ cout<<even<<endl; //output even numbers }
29th Dec 2017, 5:16 PM
Harjeet Singh
Harjeet Singh - avatar