Posts by Betina Costa • 56 points
2 posts
-
1
votes2
answers129
viewsA: Sorting Doubt - C Language
Let’s assume the following vector: [2,5,1,6]. I’ll do step by step how your code will treat this vector to see if it becomes clearer. > 2 < 2? Não [2,5,1,6] > 2 < 5? Sim [5,2,1,6] Como o…
-
3
votes1
answer51
viewsA: Reading a sequence between 2 and a given value of x
Whereas x is the number provided by the user: j = 0; //variavel que será responsável pelo indice do vetor for (int i=2; i<=x; i++) { vetor[j] = i; j++; } Thus, as the loop is executed, the vector…
canswered Betina Costa 56