programming-examples/c++/Others/A Closer Look at the IO Operators.cpp

27 lines
327 B
C++
Raw Normal View History

2019-11-15 12:59:38 +01:00
A Closer Look at the I/O Operators
#include <iostream>
using namespace std;
int main()
{
float f;
char str[80];
double d;
cout << "Enter two floating point numbers: ";
cin >> f >> d;
cout << "Enter a string: ";
cin >> str;
cout << f << " " << d << " " << str;
return 0;
}