+ 1
For f(3,6) What is void doing here I thought the correct answer 31 but the answer is wrong
void f (int x, int y) { while (x < y) { printf("%d ", y - x); x = x + 1; y = y - 1; } }
6 Respostas
+ 1
Mohamad Alkaleeh Answer is 3 1 because there is space after %d
0
just need change this
print("%d ", y-x);
for this
print("%d", y-x);
xD the space lol
0
There is no problem with the code
just what is the output?
0
31 is the answer not?
0
I think so but Coursera System says wrong
0
ok I understamd well, int Cursea System the answer is?