This document lists 22 programming problems related to numbers. The problems cover a range of topics including checking if a number is even, odd, prime or a palindrome. Other problems include writing programs to calculate Fibonacci series, Armstrong numbers, perfect numbers and their digits, reversing numbers, swapping without a third variable, and converting between decimal and binary. It also includes problems for calculating LCM, GCD, powers, factorials and the length of numbers.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views1 page
Programs On Numbers Only
This document lists 22 programming problems related to numbers. The problems cover a range of topics including checking if a number is even, odd, prime or a palindrome. Other problems include writing programs to calculate Fibonacci series, Armstrong numbers, perfect numbers and their digits, reversing numbers, swapping without a third variable, and converting between decimal and binary. It also includes problems for calculating LCM, GCD, powers, factorials and the length of numbers.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Programs on Numbers Only
1. Write a program to find whether a number is even, odd and prime? ✅
2. Write a program to print n even, odd and prime numbers? ✅ 3. Write a program that takes a number from user and check whether it is even, odd, prime and print n numbers of its type? ✅ 4. Write a program to find Fibonacci series of n numbers? ✅ 5. Write a program to check a number is Palindrome or not? ✅ 6. Write a program to find Armstrong number? ✅ 7. Write a program to check a number is perfect number? ✅ 8. Write a program to find sum of Digits of a given number? ✅ 9. Write a program to find reverse of a number? ✅ 10. Write a program to swap two numbers without using a third variable? ✅ 11. Write a program to print hello world without using a semicolon? ✅ 12. Write a program in c without a main function ()?✅ 13. Write a program decimal to binary conversion? 14. Write an assembly program in c? 15. Write a c program to generate Fibonacci triangle? ✅ 16. Write a program to find LCM and GCD? 17. Write a program to find power of a number? ✅ 18. Write a program to find factorial of a number? ✅ 19. Write a program to find the length of a given number? ✅ 20. Write a program for the following i/p to get op? a. Ip: A1b2 b. o/p:Abb 21. Write a program to find the nearest palindrome for a given number? 22.