You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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;
|
|
}
|