ShriRam Changed status to publish July 15, 2022
#include<stdio.h> void main() { int n,i,sum=0; float average; printf("Input the 10 numbers\n"); for (i=1; i<= 10; ++i) { printf("Number-%d :",i); scanf("%d",&n); sum +=n; } average=sum/10.0; printf("The sum of 10 no is : %d\nThe Average is : %f\n",sum,average); getch(); }
ShriRam Changed status to publish July 15, 2022