Numbers play a crucial role in programming, whether it’s dealing with simple digits or diving into more complex concepts like number systems, arithmetic, series, sequences, random numbers, and special numerical values. This article is your guide to understanding how to code numbers in programming, unlocking a world of computational opportunities. Let’s explore the basics and beyond to help you become a proficient coder.
Table of Content
Digits Programs:
- Write a program to reverse digits of a number
- Check whether a given number is even or odd
- Program to count digits in an integer (4 Different Methods)
- Write a program to print 1 to 100 without using any numerical value
Number System Programs:
- Program to find the sum and difference of two numbers
- Program to find the average of two numbers
- Program for Fahrenheit to Celsius conversion
- Program to check a number is divisible by 5 or not
Number Arithmetic Programs:
- Program for Sum of the digits of a given number
- Program to Print Multiplication Table of a Number
- Program for factorial of a number
- Program for Decimal to Binary Conversion
- Prime Numbers
Series and Sequences Programs:
- Program to print first 10 even numbers
- Program to print first 10 prime numbers
- Program to print all three digit numbers in ascending order
- Program for n-th odd number
- Find n-th term of series 1, 3, 6, 10, 15, 21…
- Program to print first 10 perfect squares
- Program to print first 10 numbers of Fibonacci series
- Program to print all two-digit numbers in descending order
- Program to print all multiples of 7 till 1000
- Program to print numbers having remainder 3 when divided by 11
Random Numbers Programs:
- Program to generate a random single digit number
- Program to generate a random two-digit number
- Program to generate a random three digit even number
- Generate a Random Number between 0 and 1
- Program to generate a random number between L to R
Special Numbers Programs:
- Check if a number is Palindrome
- Program for Armstrong Numbers
- Check if given number is perfect square
- Perfect Number
- Spy Number (Sum and Products of Digits are same)
- Ugly Numbers
- Neon Number
- Automorphic Number
Article Tags :
Recommended Articles