//Program to accept two numbers and display their division
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
float c;
clrscr();
printf("Enter two Integer Numbers");
scanf("%d%d",&a,&b);
if(b==0)
printf("Enter Divider other than zero");
else{
c=(float)a/b;
printf("Division is = %f",c);}
getch();
return 0;
}
To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
float c;
clrscr();
printf("Enter two Integer Numbers");
scanf("%d%d",&a,&b);
if(b==0)
printf("Enter Divider other than zero");
else{
c=(float)a/b;
printf("Division is = %f",c);}
getch();
return 0;
}
To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.