exerciseJan23

exerciseJan23 - display x stars followed by the value. For...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP202 Instructor: Ladan Mahabadi January 23, 2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Conditional Repetition Write a program that prompts the user to enter a positive integer. If the entered value x is even, your program should display (x-1) copies of x one after another. Otherwise, your program should
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: display x stars followed by the value. For instance, when the user enters 2 Output: 222 3 Output: ***3 Your program should continue prompting the user for a value until the entered value is a positive integer....
View Full Document

Page1 / 3

exerciseJan23 - display x stars followed by the value. For...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online