Coding Question 39
Write a C program to find the average of n numbers. #include<stdio.h> int main() { int num,i,count,sum=0; printf("n How many nos. you want tio add? "); scanf("%d",&count); for(i=0;i<count;i++) { printf("n Enter a Number: "); scanf("%d",&num); sum=sum+num; } printf("n Aveage= %.2f", (float)sum/(float)count); return 0; } Join Our Telegram Group Visit our Facebook Page Coding Questions Coding […]