j

Monday, 2 November 2015

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



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a;
float n,b;
cout<<"Enter floating number ::";
cin>>n;
a=n;
b=n-a;
cout<<"The floating point of number is "<<b<<endl;
cout<<"The integer point of number is "<<a<<endl;
getch();
}

Subscribe to this Blog via Email :