Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ENTERPRICE QUALITY C PROGRAMMING

Name: Anonymous 2014-02-05 13:10


#include"conio.h"
void main(){
        char name[10];
        char gender[10];
        char lastname[10];
        int age;
        printf("type your first name:");
        gets(name);
        printf("type your last name:");
        gets(lastname);
        printf("type your age:");
        scanf("%d", age);
        printf("type your gender:");
        gets(gender);
        getch();
        getch();
        if(gender=="female"){
                if(age<0){
                        printf("wrong age\r\n\r\n");
                }
                if(age==0){
                        printf("too little\r\n\r\n");
                }
                if(age>0&&age<10){
                        printf("this is the perfect age :3\r\n\r\n");
                }
                if(age>10&&age<17){
                        printf("what did you said? you are wet %s? let me change you\r\n\r\n", &firstname);
                }
        }else{
                printf("nohomo xD\r\n\r\n");
        }
        system("pause");
}

Name: Anonymous 2014-02-05 20:44

what if age is >17

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List