#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,i;
clrscr();
printf("enter starting year:");
scanf("%d",&a);
printf("enter ending year:");
scanf("%d",&b);
i=a;
while(i<=b)
{
if(i%4==0)
printf("%d\n",i);
i++;
}
getch();
}
|
Output:-
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
Post a Comment