Posts by Gustavo Carvalho • 67 points
8 posts
-
1
votes1
answer362
viewsQ: How to sort array structures based on the rank of the songs?
The rank of the code ta going in ascending order but the others do not change the positions along with the rank, as I do for the positions of the songs and styles go along with the code ? #include…
-
0
votes2
answers62
viewsQ: Incorrect Printed Form Values
I don’t know where I’m going wrong. #include <stdio.h> int main (){ int i, num, soma, maior, menor; float media; printf ("Informe 10 valores:\n"); for (i=1; i<=10; i++){ scanf ("%d",…
-
0
votes1
answer563
viewsQ: How do I not print repeat numbers?
How do I not print the repeated numbers ? I saw some examples on the internet but they were something very complex in which I didn’t understand anything :x #include <stdio.h> int main (){ int…
-
-2
votes1
answer559
viewsQ: Vector union
How do I join 2 vectors into 1 single vector ? Without repeating the numbers ? Question: Make a program that reads two vectors of 10 elements. Create a vector that is the union between the two…
-
2
votes1
answer2293
viewsQ: How do I stop organizing tables in while?
How do I stop organizing this table ? Sum, subtraction and multiplication respectively ? #include <stdio.h> int main (){ int i=0, num=0; printf ("Digite um n£mero: "); scanf ("%d",&num);…
-
1
votes3
answers76
viewsQ: How to judge all typed numbers? Only the latter is being judged and displayed
@Edit people cannot use vectors only for, while and while :x I made this code but at the end when and to display the numbers I typed it’s only appearing the last number typed instead of all, what I…
casked Gustavo Carvalho 67 -
-3
votes1
answer127
viewsQ: Accentuation in C
How do I accentuate the vowels without having to use the locale library. h ? I know that the £ matches the E as it would for the other vowels ?
-
0
votes1
answer98
viewsQ: Why does this infinite loop happen?
I made this code but it keeps giving endless loop and I can’t fix... #include <stdio.h> int main (){ int x, z; while("x=100; x!=65; x-=5"){ z=x*x; printf("%d --> %d\n", x, z); } }…