C program to count number of digits in an integer
Example Input Input num: 35419 Output Number of digits: 5 Program to count number of digits without using loop
Learn to Code and Code to Learn
Your Journey to Code Mastery
Example Input Input num: 35419 Output Number of digits: 5 Program to count number of digits without using loop
Write a C program to input a number from user and print multiplication table of the given number using for loop. How to print multiplication table of a given number in C programming. Logic to print multiplication table of any given number in C program. Example Input Input num: 5 Output 5 * 1 =…
Read More “C program to print multiplication table of a given number” »
Example Input Input upper limit: 10 Output Sum of odd numbers from 1-10: 25 Program to find sum of odd numbers in given range
Example Input Input upper limit of even number: 10 Output Sum of even numbers between 1 to 10: 30 Program to find sum of even numbers in given range
Example Input Input upper limit: 10 Output Sum of natural numbers 1-10: 55 Program to find sum of natural numbers in given range
Example Input Input upper limit: 10 Output Odd numbers between 1 to 10: 1, 3, 5, 7, 9 Logic to print odd numbers from 1 to n without if statement
Example Input Input upper range: 10 Output Even numbers between 1 to 10: 2, 4, 6, 8, 10 Program to print even numbers without using if statement
Example Input Output Alphabets: a, b, c, d, e, … , z Program to display alphabets using ASCII value
Example Input Input N: 10 Output Natural numbers from 10-1 in reverse: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 Program to print natural number in reverse in given range
Example Input Input upper limit to print natural numbers: 10 Output Natural numbers from 1 to 10: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10