My issue
include <stdio.h>
int main(void) {
int b=23,r=45;
if(r>b){
printf(“Rob Scored higher marks than Bob.”);
}
else if(r==b){
printf(“Bob & Rob both scored the same”);
}
int bob=15,rob=15;
if(rob>bob){
printf(“Rob scored higher marks than bob.”);
}
else if(bob==rob)
{
printf(“Bob & Rob both scored the same”);
}
// your code goes here
return 0;
}
My code
#include <stdio.h>
int main(void) {
int b=23,r=45;
if(r>b){
printf("Rob Scored higher marks than Bob.");
}
else if(r==b){
printf("Bob & Rob both scored the same");
}
int bob=15,rob=15;
if(rob>bob){
printf("Rob scored higher marks than bob.");
}
else if(bob==rob)
{
printf("Bob & Rob both scored the same");
}
// your code goes here
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone