#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(){
unsigned int x,year;
system("clear");
read:
printf("Plz., enter any year:");
scanf("%d",&year);
if (year%4==0)
{
printf("You have enter a leap year. \n");
}
else{
printf("You have enter a normal year. \n");
}
goto read;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter