|
|
|
| Test 1 | |
| Name: Long story | Time: 10min |
| Ask the user to input their age, then output a story with their age within it. | |
| Answer | ||
| Answer below - drag the cursor over the white space to highlight the answer | ||
| Test 1 | Long Story | Program , Source code |
#include <conio.h>
#include <iostream.h>
void main()
{
int Age;
cout << "Please enter your age: ";
cin >> Age;
cout << "Once upon a time there was a person who was at the age of " << Age
<< "\nThis person went into the woods and ran out again in a hurry" << endl
<< "The persons face says it all :{ ";
getch();
}
| ||
![]() |
![]() |
![]() |