Write a code fragment that displays a message telling the user what type of data to enter, copies into the variables num1 and num2 the values entered by the user, and then echoes the values to the screen.
Given the following environment:
```
#include
using namespace std;
int main()
{
int num1;
double num2;
...
```
```
cout << "Enter an integer and a number that may include a fraction >>> "
cin >> num1>> num2;
cout << "You entered the values " << num1 << " and " << num2<< endl;
```
Computer Science & Information Technology
You might also like to view...
Memory addresses are shown in _____
A) Binary B) Decimal C) Hexadecimal D) Octal
Computer Science & Information Technology
An eSATA motherboard port can provide power to an external device, but an eSATA port on an adapter cannot
Indicate whether the statement is true or false
Computer Science & Information Technology