PROGRAM :-
#include<stdio.h>
void main()
{
float a,b;
float div;
printf("Enter the value of a: ");
scanf("%f",&a);
printf("\nEnter the value of b: ");
scanf("%f",&b);
div=a/b;
printf("\nThe division of a/b is :%f",div);
}
OUTPUT :-
Enter the value of a: 10
Enter the value of b: 3
The division of a/b is :3.333333
Comments
Post a Comment