Posts by Guilherme Gonzalez • 36 points
4 posts
-
0
votes3
answers104
viewsA: How to mix elements of two arrays?
Friend do not understand very well PHP but I know how to program in C, in your case I understood you would have to put some display commands within a sequence that goes up to the total value of…
phpanswered Guilherme Gonzalez 36 -
0
votes4
answers1889
viewsA: Fill vector in C
Friend the mistake made was something very simple, your "scanf("%f", &[i]);" is wrong the declaration of the variable, the correct would be "scanf("%f", ¬e[i]);" because of this you are…
-
0
votes5
answers5734
viewsA: Inverting elements of a vector in C
In case you would have to reverse this way: #include <stdio.h> int main() { int vetor[5],vetorInv[5],i,n=5; printf("Digite 5 valores para um vetor: \n"); for(i=0;i<5;i++)…
-
2
votes1
answer106
viewsA: Help me with this while and switch code in C?
Friend what appears to be wrong is when selecting the option, scanf("%d",opc); the variable that will be receiving value must be with the & therefore --> scanf("%d",&opc), and you did not…