Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C percentage program

//percentage program 
//you can use the formula in your project :)
#include<stdio.h>
#include<conio.h>
void main()
{
	int a,b,c,d;
	printf("
	Welcome To Percentage maker");
	printf("

	Enter a value for percentage :- ");
	scanf("%d",&a);
	printf("

	Enter Denominator value :- ");
    scanf("%d",&b);
	//c=a/b;//
	//d=c*100;//
	c=a*100;
	d=c/b;
	printf("
	%d%%",d);
	getch();	
}
 
PREVIOUS NEXT
Tagged: #C #percentage #program
ADD COMMENT
Topic
Name
6+5 =