My issue
My code
#include <stdio.h>
int main() {
int x, y, n,t;
if(t<=100){
printf("Enter two numbers : ");
scanf("%d,%d", &x,&y);
n = x+y;
else if(n>6){
printf("YES");
t++;
}
else{
printf("NO");
}
}
return 0;
}
Problem Link: GDTURN Problem - CodeChef
black_witch there are few problems:
- u didn’t take test case you just took 2 value and compared it, which was not the question wanted it. kindly read again.
- don’t use else if use if condition there then you code will run but it will not satisfy the answer.
- why t++ …there is no loop . just conditions.
I didn’t pointed out these mistakes. I really appreciate your work buddy.