Joy of Programming
Friday, 20 December 2013
Trick in Data Type
Write a program to Check Data type Value??
# include <iostream.h>
# include <conio.h>
int main()
{
float me=1.1;
double you=1.1;
if(me==you)
cout<<"I love you";
else
cout<<"I hate you";
return 00;
}
output:
I hate you
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment