digits

PythonF

Digits Division Count

A number N is passed as input to the program. The program must print the count of digits which divide the number N without leaving a…
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

Remove First K Even Digits

The program must accept N integers and an integer K as the input. The program must remove the first K even digits among the digits of N…
CF

Adjacent Even Digits

The program must accept an integer N as the input. The program must print the digits surrounded by even digits on both sides. The first and…
CF

Double the Digits in Number

Given a positive integer N, the program must print double the value for each of it’s digits. Boundary Condition(s): 1 <= N…
CF

Product – Swap Unit Digits

The program must accept two integers X and Y as the input. The program must print the product of X and Y after swapping their unit digits as…
JavaF

First and Last Odd Digits

Given N positive integers, the program must print the integers if the first and last digits are odd digits. Boundary Condition(s):1 <= N…