Accept 10 Integers From User and Print Their Average Value On The Screen Code
Accept 10 Integers From User and Print Their Average Value On The Screen Code
Accept 10 Integers From User and Print Their Average Value On The Screen Code
Accept 10 integers from user and print their average value on the screen
Code:
Output:
---------------------------------------------------------------------------------------------------------------------
a.
**
***
****
Code:
Output:
b.
***
*****
***
Code:
Output:
c.
1010101
10101
101
d.
12
123
1234
12345
3. Write a program to find greatest common divisor (GCD) or highest common factor (HCF) of
4. Take integer inputs from user until he/she presses q ( Ask to press q to quit after every
5. Given a number count the total number of digits in a number and also find sum of digits of
the number.
6. To display the cube of the number upto given an integer. If the given integer is 5, then
display cube of 1 to 4.
7. Accept 20 numbers from user and display sum of only even numbers.
generate numbers for the following series and find its addition
[9 + 99 + 999 + 9999+........]
editor
Test Data :
10. Write a program in C to find the sum of the series [ x - x^3 + x^5 + ......]. Go to the editor
Test Data :
Expected Output :
-8
32
-128
512