Computer Science, asked by siddhihimanshu, 3 months ago

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 omtapare444
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 NatAMYRT04
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