Help me in solving CLB068 problem

My issue

no errors in the output…but it shows Wrong Answer

My code

#include <stdio.h>

int main(void) {
	int r;
	int k;
	r=32;
	k=24;
	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=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 and 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 than Ram");
  }
  else {
   printf("Ram & Karan have the same weight!");
   }
   return 0;
   }
 

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

Remove the code snippet where you used r as 32 and k as 24 then you would get it.

It’s getting executed try again

this is not required

    r=32;
k=24;
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");
}

Remove this all part from your code , because in the question they haven’t tell to initialize r=32 & k=24.