CSC 160 - Computer Programming for non-Majors

Assignment #13 - A very basic string program.

Due Tuesday, December 1, 2015

Write a program that prompts the user for a line of text, prints it and repeats this until the user types "The end"

Please remember that input returns a string . In this case, we are NOT converting into a float or an int .

We can use == and the other relational operators to compare them.

Use lower and upper so you can compare them in a case insensitive way (so it doesn't matter if it's "BIG" or "big"

[Back to the Assignments List]