Previous Next
0 / 11
Module DEMO-33-62DEMO-OOP-33

Echo And Double

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read one integer and print the value together with its doubled result.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. input integer

Output Format

Print the exact report in this order:

  1. Value
  2. Double

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
5
Value: 5
Double: 10
Input: input integer = 5.
Key calculation(s): doubled = 5 * 2 | "Value: " + 5 = "Value: 5" | "Double: " + doubled = "Double: 10".
Output:
Value: 5
Double: 10
Sample #2
Public sample
12
Value: 12
Double: 24
Input: input integer = 12.
Key calculation(s): doubled = 12 * 2 | "Value: " + 12 = "Value: 12" | "Double: " + doubled = "Double: 24".
Output:
Value: 12
Double: 24

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings