jeudi 10 juin 2021

what is wrong with my code. I am not getting required output. when in executed this code in one of the online compiler it is no giving required output

#include<stdio.h>

int main(){

    int age;
    printf("enter your age:");
    scanf("%d",&age);
    
    if(age>=18 || age<=70){
        printf("you can drive");
    }else{
        printf("you cannot drive");
    }
    return 0;
}

I am not getting the required output "enter your age:you can drive"

Aucun commentaire:

Enregistrer un commentaire