Write a menu driven program to display: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a menu driven program to display:

a) natural number from 1 to n b) natural number In reverse from n to 1 c) even numbers from 1 to n d) odd numbers from 1 to n e) sum of number from 1 to n f) sum of even numbers between 1 to n g) sum of odd numbers between 1 to n. n is input from user

14th Sep 2017, 2:14 PM
shveta patel
shveta patel - avatar
2 Answers
+ 5
Homework? Why? Please try it yourself first and let us know if you face a problem. We'll be happy to help then...
14th Sep 2017, 2:55 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
14th Sep 2017, 3:46 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar