jeudi 31 mai 2018

Without changing condition in if statement i need to print else statement by giving any value to i?

#include <stdio.h>

int main() {
    int i =-1;
    if(1< i <10){
        printf("1");
    } else {
        printf("2");
    }
}

expected output: 2
present output: 1

Aucun commentaire:

Enregistrer un commentaire