Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Dynamic Programming
1.5k+ articles
School Programming
1.4k+ articles
Numbers
320+ articles
divisibility
280+ articles
number-digits
600+ posts
Popular Articles
Recent Articles
Program to print ASCII Value of all digits of a given number
Last Updated: 08 February 2024
Given an integer N, the task is to print the ASCII value of all digits of N.Examples:Input: N = 8Output: 8 (56)Explanation:ASCII value of 8
...read more
Mathematical
number-digits
School Programming
ASCII
DSA
C Program to Print all digits of a given number
Last Updated: 03 August 2020
Given a number N, the task is to write a C program to print all digits of the number N in their original order.Examples:Input: N = 12Output:
...read more
Mathematical
number-digits
School Programming
C Programs
DSA
Program to print the given digit in words
Last Updated: 28 March 2023
Given a number N, the task is to convert every digit of the number into words.Examples:Input: N = 1234Output: One Two Three FourExplanation:
...read more
Strings
Mathematical
Technical Scripter
number-digits
School Programming
C Programs
Technical Scripter 2019
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Dynamic Programming
1.5k+ articles
School Programming
1.4k+ articles
Numbers
320+ articles
divisibility
280+ articles
Find the sum of digits of a number at even and odd places
Last Updated: 10 October 2022
Given a number N, the task is to find the sum of digits of a number at even and odd places.Examples:Input: N = 54873Output:Sum odd = 16Sum e
...read more
Greedy
Mathematical
number-digits
School Programming
DSA
Program to calculate product of digits of a number
Last Updated: 13 March 2023
Given a number, the task is to find the product of the digits of a number.Examples:Input: n = 4513Output: 60Input: n = 5249Output: 360Genera
...read more
number-digits
School Programming
DSA
Sum of digit of a number using recursion
Last Updated: 17 March 2025
Given a number, we need to find sum of its digits using recursion.Examples:Input: 12345Output: 15Explanation: Sum of digits → 1 + 2 + 3 +
...read more
number-digits
Recursion
DSA
Find first and last digits of a number
Last Updated: 13 December 2023
Given a number to find the first and last digit of a number.Examples:Input : 12345 Output : First digit: 1 last digit : 5Input : 985
...read more
Mathematical
number-digits
number-theory
DSA
Count digits
Last Updated: 28 November 2024
Given a number n, the task is to return the count of digits in this number.Example:Input: n = 1567Output: 4Explanation: There are 4 digits i
...read more
Mathematical
number-digits
DSA
Basic Coding Problems
Count even and odd digits in an Integer
Last Updated: 16 February 2023
A certain number is given and the task is to count even digits and odd digits of the number and also even digits are present even a number o
...read more
number-digits
DSA
Basic Coding Problems
Reverse digits of an integer with overflow handled
Last Updated: 23 April 2025
Write a program to reverse an integer assuming that the input is a 32-bit integer. If the reversed integer overflows, print -1 as the output
...read more
Mathematical
number-digits
DSA
Maximum number possible by doing at-most K swaps
Last Updated: 28 April 2025
Given a string s and an integer k, the task is to find the maximum possible number by performing swap operations on the digits ofsat mostkti
...read more
Strings
Greedy
number-digits
DSA
Compute sum of digits in all numbers from 1 to n
Last Updated: 26 December 2024
Given a number n, the task is to find the sum of digits in all numbers from 1 to n.Examples:Input: n = 5Output: 15Explanation: Sum of digit
...read more
Arrays
Dynamic Programming
Mathematical
number-digits
DSA
Find next greater number with same set of digits
Last Updated: 17 July 2024
Given a number N as string, find the smallest number that has same set of digits as N and is greater than N. If N is the greatest possible n
...read more
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Samsung
Snapdeal
Hike
MakeMyTrip
Vizury Interactive Solutions
FactSet
Oxigen Wallet
Zillious
Searching
Mathematical
number-digits
permutation
DSA
Write a program to reverse digits of a number
Last Updated: 19 March 2025
Given an Integer n, find the reverse of its digits.Examples:Input: n = 122Output: 221Explanation: By reversing the digits of number, number
...read more
MAQ Software
MakeMyTrip
Mathematical
number-digits
Modular Arithmetic
Recursion
DSA
Sum of Digits of a Number
Last Updated: 07 February 2025
Given a number n, find the sum of its digits.Examples :Input: n = 687Output: 21Explanation: The sum of its digits are: 6 + 8 + 7 = 21Input:
...read more
number-digits
cpp-puzzle
Recursion
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !