Help me in solving CLB004 problem

My issue

my output is 20+40

My code

#include <stdio.h>

int main(void) {
	printf("20+40");
	return 0;
}


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

don’t give double quotes. It’s printf(20+40);

include <stdio.h>

int main(void) {
printf(20+40);
return 0;
}

//run the code

1 Like

instead of printing this
printf(β€œ21+40”) ;
you have to print like this:
printf(β€œ%d”,21+40);

1 Like

if u want the output as the sum of 20+40 then
printf(β€œ%d”,20+40);

if u only want to directly print 20+40 without solving then what u wrote is crct