Created
October 3, 2016 15:22
-
-
Save bernardobarreto/eadd0ec659d6f4118e9b8b6b0b0e9d05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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