Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
- Get link
- X
- Other Apps
Author:Priyanshu, Date: November20,2020*/
#include<stdio.h>
#include<conio.h>
main()
{
int year;
clrscr();
printf("Enter the year:");
scanf("%d",&year);
if(year%4==0)
{
if(year%100==0)
{
if(year%400==0)
{
printf("leap year");
}
else
{
printf("not leap year");
}
}
else
{
printf("Leap year");
}
}
else
{
printf("not leap year");
}
getch();
return(0);
}
Comments
Post a Comment