Answers for "C percentage program"

C
0

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("ntWelcome To Percentage maker");
	printf("nntEnter a value for percentage :- ");
	scanf("%d",&a);
	printf("nntEnter Denominator value :- ");
    scanf("%d",&b);
	//c=a/b;//
	//d=c*100;//
	c=a*100;
	d=c/b;
	printf("nt%d%%",d);
	getch();	
}
Posted by: Guest on January-25-2022

Code answers related to "C"

Browse Popular Code Answers by Language