Asked in Computer ProgrammingC Programming
How do you write a program to find out the percentage of given numbers using the structure in C?
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%.