Division of two numbers in c programming language can be found out by using a division operator ( / ) which is also used to store quotient into a variable in C programming Language.
To find the division or quotient of two numbers in c programming language we shall be writing a very simple program to create your approach quite clear about C- programming Language.
Lets Begin here:-
#include <stdio.h>
#include <stdlib.h>
int main()
{
float a,b;
float div;
printf("enter two integers \n");
scanf("%f%f",&a,&b);
div=a/b;
printf("division of numbers is %f",div);
getch();
}
No comments:
Post a Comment