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

Programming Exercises

Write a program to add two numbers and print the result.

Easy

Problem Statement

Write a program to add two numbers and print the result.

Sample Input

Two hardcoded integers, e.g., 5 and 10.

Sample Output

The sum is: 15

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val a = 5 val b = 10 // Add your code here to calculate the sum }
Log in or sign up to run or submit your code.Log inSign up
Input
Two hardcoded integers, e.g., 5 and 10.
Expected Output
The sum is: 15