Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by khanh ( 5 years ago )
#include <stdio.h>
#include <time.h>
#include <conio.h>
#include <math.h>
#include <string.h>
#include <windows.h>

int main() {
	int namsinh;
	printf_s("Nhap nam sinh cua ban:\n");
	scanf_s("%d", &namsinh);
	time_t t = time(0);
	struct tm* now = localtime(&t);
	printf("So tuoi: %d", now->tm_year - namsinh);
	_getch();
}

 

Revise this Paste

Your Name: Code Language: