My issue
unable print required output
My code
#include <stdio.h>
int main() {
printf("3+4", 3 + 4 );
printf("2+1", 2 + 1);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
unable print required output
#include <stdio.h>
int main() {
printf("3+4", 3 + 4 );
printf("2+1", 2 + 1);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
Use format specifier %d to print the sum of 3 and 4 like this :
include <stdio.h>
int main() {
printf(“%d”, 3 + 4 );
printf(“%d”, 2 + 1);
return 0;
}
include <stdio.h>
int main() {
printf(“%d”, 3 + 4 );
printf(“%d”, 2 + 1);
return 0;
}
use the formate specifier"%d" for interger to print the output