Multiply by 2
Read an integer from input and output the result of multiplying it by 2
Master data structures and algorithms with our curated collection of coding challenges.
Read an integer from input and output the result of multiplying it by 2
Read two integers from input and output their difference.
Calculate and print the sum of two given integers.
Read an integer and print the next consecutive integer (N+1)
Determine if a given integer is a prime number by fixing the provided implementation.
Check if two given numbers are equal and print 'yes' or 'no' accordingly.
Print characters from a matrix alternating between first N characters from odd rows and last N characters from even rows.
Write a program that accepts two numbers and prints the largest number.
Simulate the movement of robots moving in alternating directions across rows and output their positions after T seconds
Calculate and print the remainder when a given integer is divided by 5
Accept three integers and print their sum.
Find the middle digit(s) of an integer - return the middle digit if odd length, or the two middle digits if even length