Posts by Gabriel-Antonio • 3 points
2 posts
-
-1
votes1
answer71
viewsQ: Where to use the n in the printf?
Hi, my question is where to put the \n. I see several situations where the \n is used at the end of printf: int x = 2, y = 3; printf("X = %d\n",x); printf("Y = %d",y); But also, I see it being used…
-
0
votes1
answer110
viewsA: whether the number is even or odd in a single array
The code is returning this error because the operator % only works with numbers inteiros, and its vector has a type float. Just use typecasting, which is to place the new data type in parentheses…