Programming Assignment
Programming Assignment
//this program calculates how old the user is and tells the user if the year was a leap year//
#include<stdio.h>
int main()
//defining of variables//
int yearborn,age;
scanf("%d",&yearborn);
if(yearborn>currentyear)
scanf("%d",&yearborn);
age=currentyear-yearborn;
if ((yearborn %4)==0)
Return 0
/tmp/lCvUBmzgJE.o
2005
#include<stdio.h>
int main()
//defining of variables//
int yearborn,age;
scanf("%d",&yearborn);
age=currentyear-yearborn;
if(yearborn>currentyear)
else
if ((yearborn%4)==0)
else
}
}
Return 0
/tmp/k93GaLWIXl.o
2005