Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save bernardobarreto/eadd0ec659d6f4118e9b8b6b0b0e9d05 to your computer and use it in GitHub Desktop.

Select an option

Save bernardobarreto/eadd0ec659d6f4118e9b8b6b0b0e9d05 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <time.h>
int main(){
char dateStr [9];
char borndate [9];
int i,j;
int year, bornyear, age;
age=year-bornyear;
_strdate(dateStr);
printf( "The current date is %s \n", dateStr);
for (x=1; x<=9; x++){
if (date[i]==dateStr[i]) {j=j+1
if(j==10) printf( "PARABÉNS PELOS SEUS %d PORRA!!!!",age);
}
}
i=0;
j=0;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment