Control Structures
Repetition / Looping Structure
-
Print numbers from 1 to 5
-
Read and display 5 numbers
-
First N even numbers
-
First N odd numbers
-
First N numbers divisible by 4
-
Numbers between 1 and 50 which are divisible by 3 and not by 5
-
Print numbers between two limits
-
Print numbers between two limits and type (odd / even)
-
Display the multiplication table
-
Read and display 5 numbers.
-
Count and display number of positive, negative and zeros.
-
Mean of 5 numbers
-
Biggest / smallest of 5 numbers
-
-
GCD of two numbers
-
Armstrong number
-
Exponentiation of a number (xn)
-
Square root of a number using Newton’s method
-
Factorial of a given number
-
Factorial of first N numbers
-
Fibonacci series
-
Number manipulation
-
Display digits of a given number
-
Count number of digits in a given number
-
Sum of digits in a given number
-
Sum of digits of a number until single number is obtained
-
Display digits in the number and type (even / odd)
-
Sum of even and odd digits of a number
-
Reverse of a number & Palindrome
-
Smallest and largest digit in a number
-
Digits in odd position of a number
-
Digits in even position of a number
-
-
Check if given number is a Prime number or not
-
Display all the prime numbers between two limits
-
Display first N prime numbers