i write code in c and i want to terminate if statement i use.
exit();
function it works but it will create new problem.
getch();
function stop working in my code and the output wont stay on screen it just flash and disappeared. here is my code
#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);
}
if(a==2,5<b<=10)
{
printf("you");
else
printf("me");
}
getch();
}