C programming: Age calculator
#include <stdio.h> #include <stdlib.h> int main(){ int bd, bm, by, cd, cm, cy, ad, am, ay; printf("Please give me your date of birth \n"); printf("day \t"); scanf("%d", &bd); printf("month \t");…
#include <stdio.h> #include <stdlib.h> int main(){ int bd, bm, by, cd, cm, cy, ad, am, ay; printf("Please give me your date of birth \n"); printf("day \t"); scanf("%d", &bd); printf("month \t");…
#include <stdio.h> #include <stdlib.h> int main(){ int a; printf("Please enter a year: \n"); scanf("%d,", &a); if(a%4==0 && a%100!=0){ printf("You entered %d and this is a leap year. \n", a); }…