Write a program to take average and find greater number from numbers you want to enter

#include<stdio.h>
#include<conio.h>

int main()
{

int x,m=0,a; float sum,avg;
int count;
printf(“You want to take the average How many numbers:”);
scanf(“%d”,&count);
for(x=1;x<=count;x++)
{
printf(“Enter integer\n”);
scanf(“%d”,&a);
sum=sum+a;

if(a>m)
{
m=a;
}
}
avg=(float)(sum/count);
printf(“%d is greatest integer.\n%.2f is average of all integers.”,m,avg);
getch();

}