Sunday, September 5, 2010

C++ Program to output an integer, a floating point number and a character.

#include
#include

void main()
{
clrscr();
int a = 10;
float b = 10.1;
char c = 'N';
cout << "a = " << a << endl;
cout << "b = " << b << endl;
cout << "c = " << c << endl;
getch();
}

0 comments:

Post a Comment