j

Tuesday, 3 November 2015

Write a program that take floating number from user and display only floating point for exmpale user enter 55.490 then only print 0.490



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float n,b;
int a;
printf("Enter floating number ::");
scanf("%f",&n);
a=n;
b=n-a;
printf("Decimal point is %f",b);
getch();
}

Subscribe to this Blog via Email :