Question: using c language #include Problem 1 Write a program in Cusing any loop structure to display the n terms of natural number and their sum.
Problem 1 Write a program in Cusing any loop structure to display the n terms of natural number and their sum. (ODD numbers only) Sample Output (First Run) Input number of terms: 10 The odd numbers are :1 3 5 7 9 11 13 15 17 19 The Sum of odd Natural Number upto 10 terms : 100 Sample Output (Second Run) Input number of terms: 5 The odd numbers are :1 3579 The Sum of odd Natural Number upto 5 terms: 25 Problem 2 Write a program using any type of looping structure to display the sample output below. Sample Output (First Run) Note: End value is always greater than start value Input start value: 10 Input end value: 20 Interval: 3 10 13 16 19 Sample Output (Second Run) Note: End value is always greater than start value Input start value: 0 Input end value: 50 Interval: 7 0 7 14 21 28 35 42 49
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
