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
my output is 20+40
#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);
instead of printing this
printf(β21+40β) ;
you have to print like this:
printf(β%dβ,21+40);
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