Computer Science, asked by Anonymous, 1 day ago

\large{\underline{\underline{\tt{ \pink{Q} \blue{U} \red{E} \green{S} \orange{T} \purple{I} \pink{O} \blue{N} \red{:} }}}}

1) Write an algorithm to find a given number is even or odd.

2) Write an algorithm to find a given year is leap year or not.​

Answers

Answered by WintaeBearTATA
1
  1. Step 1: Start
  2. Step 2: [ Take Input ] Read: Number
  3. Step 3: Check: If Number%2 == 0 Then
  4. Print N is an Even Number.
  5. Else
  6. Print N is an Odd Number.
  7. Step 4: Exit
  8. To eliminate this error, the Gregorian calendar stipulates that a year that is evenly divisible by 100 (for example, 1900) is a leap year only if it is also evenly divisible by 400. This is because they are evenly divisible by 100 but not by 400. This is because they are evenly divisible by both 100 and 400.

Similar questions