scanf from learning lad youtube channel

 #include <stdio.h>


int main()

{ int age ;

printf("please enter your age/n");

scanf("%d",&age);

   if( age>= 18) {printf("you are eligible/n"); }

   else { printf("you can go home");

   };

    printf("Hello World");


    return 0;

}  

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation