0

How to solve this problem

Fill in the blanks to calculate the sum of the variables a and b store it in the sum variable, then output it. int a = 8; int b = 56; int sum = a+b; printf("%d sum🔳 ; What should be write in 🔳

12th Oct 2024, 9:53 AM
Sher Agha Hewadmal
5 Réponses
0
Could this be the answer: ¯\_(ツ)_/¯ printf("%d", sum);
12th Oct 2024, 10:36 AM
SoloProg
SoloProg - avatar
0
This answer is actually right but in Sololearn c language quiz doesn't accept that it's right. I am stopped
12th Oct 2024, 11:35 AM
Sher Agha Hewadmal
0
I am assuming you made an error when you copied in the problem. The printtf statement cannot be fixed by only providing a value in the box. The printf statement should look like this: printf("%d", sum); There's a double quote and comma before "sum". Then the blank would only require a closing ). If you did copy that code precisely, then the solution would have to be: printf("%d sum", sum); You would have to supply: ", sum) That seems unlikely considering how SoloLearn typically formats their questions.
12th Oct 2024, 2:09 PM
Jerry Hobby
Jerry Hobby - avatar
0
) Close the argument
13th Oct 2024, 9:28 PM
Florin Manceanu
Florin Manceanu - avatar
0
64
24th Oct 2024, 1:26 AM
Praveen Duppalapudi
Praveen Duppalapudi - avatar