Division of two numbers in C-language

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.

Comments

  1. In simple way all programs related to c language are available here.

    ReplyDelete
  2. Very easy to do with your method. Post more tutorials sir.

    ReplyDelete

Post a Comment

Popular posts

Creative pattern of butterfly in C-language

Program to show present time and date in C-language

Introduction of C-language.

Program to cheque enter number is a perfect number or not using if else in C-language

Program to cheque four digits number is palindrome or not in C-language

Program to print the cube of a number in c-language

Simple Hello world program in c- language