[Solved] multiple conditions in same if statement in C [duplicate]


hi try this hope its work

#include<stdio.h>
#include<cono.h>
#include<iostream.h>
#include<stdlib.h>
void main(void)
{
 int a,b;
 printf("enter a");
 scanf("%d",&a);
 printf("enter b");
 scanf("%d",&b);
 if(a==1 && b<=8)
 {
  printf("you");
  exit(0);
  } else if(a==2 && 5<b && b<=10)
 {
  printf("you");
 }
else{
  printf("me");
  }
  getch();
  }

2

solved multiple conditions in same if statement in C [duplicate]