Sign InCreate Account

Upgrade to Pro

Upgrade Now

Coding Workspace

EditorProjectsPractice QuestionsTimed Mock ExamsFlowcharts

PseudoEditor AI

Pseudocode TutorCode GeneratorCode FixerCode Converter
Back to Problems
PreviousNext

Sign in to run tests against edge cases and save your code automatically.

Problem Description

Easy

Mark Range Validation

PROValidation & Checks
Iteration & Loops
Input Validation

Write a program that repeatedly inputs an exam mark until a valid mark is entered. A valid mark is a whole number from 0 to 100 inclusive. Every time an invalid mark is entered, output `Invalid`. When a valid mark is entered, output `Accepted` and stop. For example, the inputs 150, -5, 60 produce `Invalid`, `Invalid`, `Accepted` (one per line).

Example Input

75

Example Output

Accepted

Success Rate:

0% (0 passed / 0 attempted)

Code

Draft auto-saved

Test Results

Click "Test Code" to evaluate your code against the tests.

Product

For SchoolsOverviewFeaturesFAQ
PseudoEditor

© 2026 PseudoEditor. All rights reserved.