digits

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

Integer – Sum of Digits

The program must accept an integer value N as a command line argument and print the sum of the digits in N.Example Input/Output…
CF

Position Digits Sum

The program must accept two positive integers as the input and then print the sum of their unit digits, tenth digits and so on. Input Format:…