Home » Post Item » C-language
" Your Reliable Partner in Homebuilding "

C-language

February 23, 2010

#include <conio.h>

#include<stdio.h>

main<>

<  

             int 8age;

            clrscr<>;

           printf<”Enter your age:”>;

            scanf<”%i”, &age>;

            if<age >=18>

            <

                 printf<”You’re age is %i”.age>;

                 printf<”\nYou are allowed to register  and vote.”>;

              >

                 else

              <

                  printf<”You are too young to register &vote!”>;

               >

getch<>;

return<0>;

>

 

Posted by cutepie at 2:47 pm | permalink

All comments are moderated. Your comments will not appear here unless approved by the blog owner. Thank you.

Add a comment