All pastes #524832 Raw Edit

jargonss

public c v1 · immutable
#524832 ·published 2007-05-31 05:27 UTC
rendered paste body
#include <stdio.h>main()//below here a block is starting //{      int  years;      int  adult = 18;      printf("How old are you? ");      scanf("%d", &years);      printf("You are %d years old\n", years);/* The if statement below describes that if the users age is below that       which is specified, then the code in the block below it will be displayed*/    if (years < adult)    {      printf("You are too young to be using this program\n");      printf("You are %d years below the age limit for the use of this program\n", adult - years);      printf("This application will now exit\n");    }    if (years > adult)    {      printf("Access granted to vault...\n");      printf("Your age has been verified, you are %d year(s) older than %d\n", years - adult, adult);    }      fflush(stdin);      getchar();}