Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
While Loop Practice | While Loop
C++ Loops
course content

Course Content

C++ Loops

C++ Loops

1. While Loop
2. For loop
3. Nested loops

bookWhile Loop Practice

Task

The string has been corrupted and is currently saturated with exclamation marks (!). You were chosen to restore the original data it was holding.

  • Fill new string with a valid characters (omit exclamation marks) from the corrupted string.
  • Output new fixed string.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 5
toggle bottom row

bookWhile Loop Practice

Task

The string has been corrupted and is currently saturated with exclamation marks (!). You were chosen to restore the original data it was holding.

  • Fill new string with a valid characters (omit exclamation marks) from the corrupted string.
  • Output new fixed string.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 5
toggle bottom row

bookWhile Loop Practice

Task

The string has been corrupted and is currently saturated with exclamation marks (!). You were chosen to restore the original data it was holding.

  • Fill new string with a valid characters (omit exclamation marks) from the corrupted string.
  • Output new fixed string.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task

The string has been corrupted and is currently saturated with exclamation marks (!). You were chosen to restore the original data it was holding.

  • Fill new string with a valid characters (omit exclamation marks) from the corrupted string.
  • Output new fixed string.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt