Posts

Even or Odd number checker

Image
Input  : I entered a number Output  : Even or odd number Logic  : I used loop to check even or odd number how many times i wanted

Factorial

Image
Input : A number Output : Factorial of the number Logic : For loop to keep multiplication

Sum natural numbers

Image
Input : Any natural number V1 Logic : I used for loop and summ variable V2 Logic : I used formula for sum of n natural numbers Output : Sum of natural numbers

Star pattern - 1

Image
Input:  The number of lines to print stars. Output: Star pattern. V2 - Logic: We used 2 for loops. V1 -  Logic: We used simple fix approach of print to print 5 lines of *.

Birthday party guest list v2

Image
Input  : As many birthday guests as you want Output  : Guest number and guest name Logic :  I used loop to not write same line again and again. I used if and else condition to identify host eelis and guests. I used count to keep track of the number guests.

Birthday party guest list V1

Image
Input  : 10 birthday guests Output  :Guest 1-10 Logic : Loop to put guest 1-10 so i dont need to write it 10 times