digit

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

Print Xth Digit from Last

Two integers N and X are given as input. The program must print the Xth digit of N from last. Boundary Condition(s):1 <= N <= 9999999991…
CF

Numbers with Unit Digit

Numbers with Unit DigitGiven two positive integers A and B and a digit U, the program must print all the integers from A to B (inclusive of A…
CF

Digit In Tenth Position

The program must accept a positive integer N and print the digit in the tenth position. Input Format:The first line denotes the value of…
CF

Nature of Digit in Position

Given a number ‘n’ and a position; Write an algorithm and subsequent ‘C’ program to Check if the ‘p-th’ Digit, Starting from left-most digiit…
CF

Matrix Unit Digit Swap

The program must accept an integer matrix of size R*C, where C is even and swap the unit digits of the elements in columns 1 and 2, then 3 and…