Division of two numbers in C-language
#include<stdio.h>
int main()
{
float x,y,z;
printf ("Enter two numbers");
scanf("%f%f",&x,&y);
z=x/y;
printf("Division of two numbers are=%f",z);
}
OUTPUT
Enter two numbers 20
5
Division of two numbers are=4.000000
Division of two number is simple program of C-language.After reading this program you will be able to form simple mathematics division.
If you like this program then you can share it and for any issues you can direct contact with me from Home Page.
For regular updates you can also follow my site.
In simple way all programs related to c language are available here.
ReplyDeleteVery easy to do with your method. Post more tutorials sir.
ReplyDelete