25.(C)#Tricky one from Toph--->>>Thought game
#include<stdio.h>
/* I must say that it is a tricky quiz, there a girl named who
Sadia loves even numbers. She will give us two int numbers and if the
average of that two int is even she will be happy. Otherwise,
she will not be happy
But, the twist here is we will have to take t as int which
will decide how many times the program will run.
For example, if we give t =3 then the program will run for 3 test
case*/
int main(){
int t;
scanf("%d",&t);// t here denote test case.if t=3,the programm
// will run for 3 times
while(t--)
{
int X1,Y1,avg;
scanf("%d%d",&X1,&Y1);
avg =(X1+Y1)/2;
if(avg%2==0)
{
printf("Sadia will be happy.\n");
}
else
{
printf("Oops!\n");
}
}
return 0;
}
Comments
Post a Comment