Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

First Quiz




Test 1
Name: Long storyTime: 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 1Long 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();
}


Back Home Next