###### Asked in Computer ProgrammingC Programming

Computer Programming

C Programming

# How do you write a program to find out the percentage of given numbers using the structure in C?

## Answer

###### Wiki User

###### September 06, 2016 5:52PM

Count all the given numbers then count all the numbers of a given value. Divide one by the other and multiply by 100. For instance, if there are 50 numbers in total and 5 of them have the value 42, then the percentage of numbers with the value 42 is 5 / 50 * 100 = 10%.

## Related Questions

###### Asked in C Programming

### Write a program for which give number in ascending number?

the following program will display all numbers given in the
array in ascending order
#include<stdio.h>
void main()
{
int i,h,p;
int numbers[10]={5,8,3,2,6,7,9,4,1,10};
for(p=0;p<=8;p=p+1)
{
for(i=0;i<=8;i=i+1)
{
if(numbers[i]>numbers[i+1])
{
a=numbers[i];
numbers[i]=numbers[i+1];
numbers[i+1]=a;
}
}
}
for(i=0;i<=9;i=i+1)
{
printf("%d ",numbers[i]);
}
}

###### Asked in Math and Arithmetic

### How big is 39 x 57 art picture?

It is impossible to tell when there are no units of measurement
given with the numbers.
It is impossible to tell when there are no units of measurement
given with the numbers.
It is impossible to tell when there are no units of measurement
given with the numbers.
It is impossible to tell when there are no units of measurement
given with the numbers.

Load More