Search
 
SCRIPT & CODE EXAMPLE
 

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();	
}
Comment

PREVIOUS NEXT
Code Example
C :: determination of armstrong number in c 
C :: c 2d array dimensions 
C :: dynamically create matrix c 
C :: c Program for Sum of the digits of a given number 
C :: how to ban websites on mac 
C :: c printf uint32_t 
C :: c float remove trailing 0 
C :: print bool c 
C :: how to print the first character of a string in c 
C :: check prime number or not c 
C :: why do we need return 0 in c? 
C :: c print char 
C :: how make a character in c scanf 
C :: initialize array in c with 0 
C :: text berjalan html 
C :: fgets function in c 
C :: how to get the ascii value of a character in c 
C :: number of hours, minutes, and seconds given the number of seconds. 
C :: how i send custom data in model field rest_framework serializer 
C :: c pointers 
C :: pointers to a function in c 
C :: malloc 
C :: c median of an array 
C :: include ‘<stdlib.h’ or provide a declaration of ‘exit’ 
C :: how to insert elements in and array and print it in c 
C :: print in c 
C :: fwrite c 
C :: logical operators in c 
C :: north austin weather 
C :: type cast in c 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =