My issue
where i am wrong in this problem?
My code
#include <stdio.h>
int main(void) {
// your code goes here
int r,k;
r=24;
k=32;
if(r>k){
printf("Ram is heavier than Karan.\n");
}else if(r<k){
printf("Karan is heavier than Ram\n");
}else{
printf("Ram &Karan have the same weight!\n");
}
r=78;
k=78;
if(r>k){
printf("Ram is heavier than Karan");
}
else if(r<k){
printf("Karan is heavier tha Ram");
}
else{
printf("Ram &Karan have the same weight!");
}
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone