67 272
Assignments Done
99,1%
Successfully Done
In November 2018

Answer to Question #21703 in C++ for binagi

Question #21703
how to write a program to print the numbers between 1 and 100,along with an indication of whether each is even or odd?
Expert's answer
#include<iostream>
using namespace std;
&
&
int main (){
for (int i=1;i<101;i++){
if(i%2==0)
cout<<i<<"& number is even"<<endl;
else
cout<<i<<"& number is odd"<<endl;
} &
system("PAUSE"); &
&
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions