c program to calculate statistic mean


 #include

void integer(int n);
void flot(int n);
main()
{
	int n;
	char c;
	printf("which type of values?\n type \"f\" for float\n type \"i\" for interger\n type your coice:");
	scanf("%c",&c);
	printf("\n enter limit of values:");
	scanf("%d",&n);
	if(c=='f' || c=='F')
	{
		flot(n);
	}
	else
	{
		integer(n);
	}
}
void integer(int n)
{
	int a[100],i,sum=0;
	float mean;
	printf("\n enter %d values:\n",n);
	for(i=0;i

Comments

Popular posts from this blog

Exporting HTML Page into PDF In Django

C PROGRAMMING LANGUAGE