#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
float c;
clrscr();
printf("Enter two numbers");
scanf("%d%d",&a,&b);
c=(float)a/b;
printf("Quotient=%f",c);
}
OUTPUT:
Enter two numbers 5
2
Quotient is 2.5
#include<conio.h>
void main()
{
int a,b;
float c;
clrscr();
printf("Enter two numbers");
scanf("%d%d",&a,&b);
c=(float)a/b;
printf("Quotient=%f",c);
}
OUTPUT:
Enter two numbers 5
2
Quotient is 2.5
No comments:
Post a Comment