Posts by Denilson Silva • 125 points
6 posts
-
0
votes1
answer43
viewsQ: Simply Chained List Printing/Abstract Data Type - ADT
I’m having difficulty not implementing the void exibe_lst(Telem* lst) function, I can’t get the entered elements to be displayed due to a conversion I don’t know how to solve. Follow the TAD link.…
-
1
votes1
answer83
viewsQ: Partitioning the algorithm into functions
The problem is this: a function takes an int as parameter, and returns it written backwards and another to test whether the input number and the inverted number is palindromic or not. I was able to…
-
3
votes2
answers144
viewsQ: Recursive printing in triangle format
I have to read an integer value and pass it as a parameter to a function. It should display the number using the sample format. Ex: if the number given was 3, show: 1 1 2 1 2 3 I can show the format…
-
1
votes1
answer248
viewsQ: Highest value in a fixed vector of 10 positions
I have pending exercise to find the largest element in a fixed vector of 10 elements. However, when declaring the array integers works, but when I ask the user to enter the values does not work. int…
-
1
votes2
answers257
viewsQ: Mystery Square
The integers positioned on an Nxn square such that all lines and main diagonal have the same sum. For example, the square below 2 7 11 9 5 6 4 3 13 is a mysterious square of sum 20, since all lines…
-
2
votes4
answers2189
viewsQ: Sum of primes in a range in C
My problem says to add the primes in a user-given range, including the ranges if these are primes. Example: ENTRANCE: 2 and 10 EXIT: 17 I managed to do that: #include <stdio.h> int main() {…