C program to find sum of digits of a number
Example Input Input any number: 1234 Output Sum of digits: 10
Learn to Code and Code to Learn
Your Journey to Code Mastery
Example Input Input any number: 1234 Output Sum of digits: 10
Example Input Input number: 1234 Output First digit: 1 Last digit: 4
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