write a program to input any 4 numbers and print the sum and average of numbers
please guys tell me the answer I am finding it since 4 hours yet not getting please help me
Answers
Answered by
0
Explanation:
- program
- #include<stdio.h>
- void main( )
- {
- int n, count = 1;
- float x, average, sum = 0;
- printf("Enter the value of n?" );
- scanf ("%d",&n);
- while (count <= n)
Answered by
13
Answer:
are you talking bout the programming in c++ here is the answer
{
int a,b,c,d,sum;
cout<<"enter the first no.";
cin>>a
( write by yourself the other 3 just the same but change the cin value)
sum=a+b+c+d;
cout<<"the sum of 4 no. are ",sum;
getch()
return0
}
Similar questions