Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a program that declares an integer variable, assigns it a value, and prints it.

Easy

Problem Statement

Create a program that declares an integer variable, assigns it a value, and prints it.

Sample Input

Integer: 10

Sample Output

The value is: 10

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; class PrintInteger { static void Main() { // Declare and initialize an integer // Print the integer value } }
Log in or sign up to run or submit your code.Log inSign up
Input
Integer: 10
Expected Output
The value is: 10