write a c program to find average of 4 numbers by accepting the numbers
Answers
Answered by
4
Answer:
#include <stdio.h>
#include<conio.h>
void main()
{
int A [4],i;
float avg,sum=0;
clrscr ();
{
printf ("Enter the numbr to find average");
for(i=0;i <0;i++)
scanf ("%d",&A [i]);
}
for(i=0;i <0;i++)
sum=sum+A [i];
avg=sum/4;
printf("Average is %f",avg);
getch ();
}
it will help you ❤❤❤❤
Similar questions
English,
6 months ago
Social Sciences,
6 months ago
Chemistry,
6 months ago
English,
11 months ago
Math,
11 months ago
Social Sciences,
1 year ago
English,
1 year ago