values

HCF (GCD) of long values

The program must accept two long values X, Y and print their HCF (GCD). Input Format:The first line contains X and Y separated by a space.…

Odd-Even Values Difference

Given a value of N positive integers, the program must print the difference between the sum of odd integers and the sum of even integers.…

Double Array Values

Given N integers, the program must double the values and print them. Input Format:First line contains NSecond line contains N integers…

Sum of Dice Values

Pairs of integers are passed as the input to the program. The integers in each pair represent values of two dice in a game. If both the values…

First Five Values Divisible

Three numbers A, B and C are passed as input. The program must print the first five values that are divisible by A, B and C.Input Format:The…

Common Part in string values

Two string values S1 and S2 are passed as input. The last portion of S1 will be the first portion of S2. The program must print this common…

Integer – Place Values

The program must accept an integer N as the input. The program must print each place value in the integer N as the output. Boundary…

Subscribe to our Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨