#include "stdafx.h"

int main(int argc, char* argv[])
{
	int age, decade, years;

	printf("Please type in your age: ");
	scanf ("%d", &age);

    if (age >= 13)
	    if (age <=19)	
		      printf("You are a teenager\n");
         else printf("You are post-teen\n");

	else
	    printf ("You are a pre-teen\n");


	printf ("You are %d years old\n\n", age);

	decade = age / 10 +1; /*compute which decade of life*/
	years = age % 10;  /*compute num of years into that decade*/
    
    printf("\nYou are in decade %d of your life\n", decade);
	printf("You are %d years into that decade\n", years);

	return 0;
}