Posts by Vinícius • 33 points
4 posts
-
1
votes2
answers764
viewsA: Problem with Printing Repeated Numbers in C
Well one possible solution is to use boolean to solve the problem, just include at the beginning of the code #include <stdbool.h> and declare a variable bool, to verify whether or not there…
-
0
votes1
answer237
viewsA: How to sort an array by the frequency of appearance of each element?
Well after a lot of trying using the idea of the colleague there, I managed to create a solution that the teacher accepted if someone in the future needs something like this I will leave the code…
-
2
votes1
answer237
viewsQ: How to sort an array by the frequency of appearance of each element?
Not to delay too much I go straight to the point, I am trying to make a program for an exercise that possessed the following instruction: Build a function int ordenaFreq(int v[], int n) efficient,…
-
0
votes2
answers326
viewsQ: I need to make a Python entry by storing it as a list, all in one line
I am doubtful in a college exercise, I need to store 3 data which are: Vehicle number, mileage and consumption in each variable of type list, but due to be different types, with the first 2 being…