j

Tuesday, 3 November 2015

Write a program that take floating number from user and display the integer and floating point seprate



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

Subscribe to this Blog via Email :