Pages

Saturday, 19 May 2012

program to division of small value


26./*Write a program to division of small value*/

#include<stdio.h>
#include<conio.h>
void main()
{
float a,b;
clrscr();
printf("enter the value a");
scanf("%f",&a);
printf("enter the value b");
scanf("%f",&b);
if (a>b)
printf("%f",a/b);
else
printf("%f",b/a);
getch();
}


OUTPUT
            Enter the value a:10
            Enter the value b:5
            2.0000

No comments:

Post a Comment