Computer Science, asked by gunnikaakhetan2007, 8 months ago

write an algorithm to see if a year is a leap year or not also draw a flowchart for the following ...... pls solve this fast anybody I will give brainiest ans to the first person to give me the ans

Answers

Answered by Camilaa
1

Answer:

IMPLEMENTATION:

#include <stdio.h>

int main() {

  int year;

  year = 2016;

  if (((year % 4 == 0) && (year % 100!= 0)) || (year%400 == 0))

     printf("%d is a leap year", year);

  else

     printf("%d is not a leap year", year);

  return 0;

}

Output

PSEUDOCODE:

procedure leap_year()

   

  IF year%4 = 0 AND year%100 != 0 OR year%400 = 0

     PRINT year is leap

  ELSE

     PRINT year is not leap

  END IF

end procedure

Answered by rubii23
0

Explanation:

c c xnnxnxnxnxmdmdmxkdjdjdfbdhuhheshshewuwhwhjwwjwujw

Similar questions