sum

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…
PythonF

Sum – Unit Digit 3 or 6

The program must accept N integers as the input. The program must print the sum of integers having the unit digit as 3 or 6 as the…