Basic Programs


Write a program to print natural numbers upto n

Write a program to check given number is even number or not

Write a program to print all even numbers upto n

Write a program to check given number is odd number or not

Write a program to print all odd numbers upto n

Write a program to check a number is even or odd

Write a program to generate multiplication table

Write a program to swap two integers

Write a program to swap two numbers without using third variable

Write a program to split number into digits

Write a program to count number of digits in a number

Write a program to find out sum of digits of given number

Write a program to reverse any number

Write a program to check given number is palindrome number or not

Write a program to check given number is prime number or not

Write a program to print all prime numbers up to given number

Write a program to check given number is perfect number or not

Write a program to check given number is Armstrong number or not

Write a program to check given number is strong number or not

Write a program to print factorial of given number

Write a program to print Fibonacci series of given range

Write a program to find out power of a number

Write a program to solve quadratic equation

Write a Program to print hello world without using semicolon

Write a program to find largest among three numbers using conditional operator