If and Loop¶
How To: Basic::If and Loop
Find numbers divisible by 7 and multiple of 5
Convert temperatures to and from celsius, fahrenheit
Guess a number between 1 to 9
Construct the pattern, using a nested for loop
Accept a word from the user and reverse it
Count the number of even and odd numbers
Print each item and its corresponding type from the list
Prints all the numbers from 0 to 6 except 3 and 6
Get the Fibonacci series between 0 to 50
Fizz-Buzz
Generate a two-dimensional array with (i * j) values
Accept lines (blank line to terminate) and prints them in lower case
Accept 4 digit bin numbers and print divisible by 5 numbers
Accept a string and calculate the number of digits and letters
Check the validity of password
Find numbers between 100 and 400 (both included)
Print alphabet pattern ‘a’
Print alphabet pattern ‘d’
Print alphabet pattern ‘e’
Print alphabet pattern ‘g’
Print alphabet pattern ‘l’
Print alphabet pattern ‘m’
Print alphabet pattern ‘o’
Print alphabet pattern ‘p’
Print alphabet pattern ‘r’
Print alphabet patterns ‘s’ and ‘S’
Print alphabet pattern ‘t’
Print alphabet pattern ‘u’
Print alphabet pattern ‘x’
Print alphabet pattern ‘z’
Calculate a dog’s age in dog’s years
Check whether an alphabet is a vowel or consonant
Convert month name to a number of days
Make sum of two integers with extra condition
Check a string represent an integer or not
Check a triangle is equilateral, isosceles or scalene
Read month and day as integers and print the season
Display astrological sign for given date of birth
Display the sign of the chinese zodiac
Find the median of three values
Get next day of a given date
Calculate the sum and average of n integer
Create the multiplication table (from 1 to 10) of a number
Construct the pattern, using a nested loop number