- 1

Make a program in C++ of even number from 50 to 0 and odd number from 49 to 1

3rd Dec 2021, 4:29 AM
Abdul Basit Khan
Abdul Basit Khan - avatar
2 Answers
0
Thanks for correction Ipang sir
3rd Dec 2021, 5:22 PM
Pihu ( Not Active )
- 1
Using any loop and conditional statements you can implement the code ... Example: for(int i=50;i>0;i--) { if(i%2==0) cout<<i; } for(int i=49;i>0;i--) { if(i%2!=0) cout<<i; }
3rd Dec 2021, 2:46 PM
Pihu ( Not Active )