#include <stdio.h>
int main(void) {
int a,c,t;
float b;
scanf("%d",&t);
while(t–){
scanf("%d %f %d",&a,&b,&c);
if( a>50&&b<0.7&&c>5600){
printf(“10\n”);
}
if( a>50&&b<0.7&&c<5600){
printf(“9\n”);
}
if( a<50&&b<0.7&&c>5600){
printf(“8\n”);
}
if( a>50&&b>0.7&&c>5600){
printf(“7\n”);
}
if( a>50&&b>0.7&&c<5600||a<50&&b<0.7&&c<5600||a<50&&b>0.7&&c>5600){
printf("6\n");
}
else if(( a<50&&b>0.7&&c<5600)){
printf("5\n");
}
}
return 0;
}
I’ll tell you a secret of getting your code noticed easily on this forum.
DO PASTE CLEAN, EASY READABLE AND FORMATTED CODE.
It hardly takes minutes to do so. For those willing to help
#include <stdio.h>
int main(void) {
int a,c,t;
float b;
scanf("%d",&t);
while(t–){
scanf("%d %f %d",&a,&b,&c);
if( a>50 && b<0.7 && c>5600){
printf(“10\n”);
}
if( a>50 && b<0.7 && c<5600){
printf(“9\n”);
}
if( a<50 && b<0.7 && c>5600){
printf(“8\n”);
}
if( a>50 && b>0.7 && c>5600){
printf(“7\n”);
}
if( a>50 && b>0.7 && c<5600 || a<50 && b<0.7 && c<5600 || a<50 && b>0.7 && c>5600){
printf("6\n");
}
else if(( a<50 && b>0.7 && c<5600)){
printf("5\n");
}
}
return 0;
}
1 Like
ssjgz
3
This actually still contains a bunch of compiler errors from when the forums initially mangled it
Aur bro Naya video kab a rha hai😅…and happy new year🌌
1 Like
bro it running fine in my computer and https://www.onlinegdb.com/
compiler
but it is not getting submited
showing wrong answer