sum

PythonF

Divisible Sum Pair Count

N numbers (A0, A1, A2, …, AN-1) are passed as input to the program. A positive integer D is also passed as input to the program.The…
PythonF

Sum of Last X Digits

Given two integers N and X as input, the program must print the sum of last X digits in the given integer N. Boundary Condition(s):1 <= N…
PythonF

Sum divisible by D

Two numbers A and B are passed as input. The program must print yes if the sum of these two numbers A and B is divisible by a third number D.…
PythonF

Diagonal Sum

A set of numbers forming a matrix N*N is passed as input. The program has to print the sum of numbers along the diagonals. Input Format: The…