Posts by Bruno Esteves • 31 points
5 posts
-
0
votes2
answers99
viewsA: I’m having trouble reading a string inside a function
do so: scanf("%[ n]s",variablename);
-
0
votes1
answer4711
viewsQ: Giving Segmentation Failure error (recorded core image)
Exercise = Perform a procedure that receives, per parameter, 2 vectors of 10 elements integers and that calculates and returns, also by parameter, the intersection vector of the two first. My code:…
casked Bruno Esteves 31 -
-1
votes2
answers146
viewsQ: Where is the error of that code?
Exercise: Perform a procedure that returns, by parameter, a vector A(5) with the first 5 perfect numbers. My Code: #include <stdio.h> #define TAM 5 void numeros_perfeitos(int A[]) { int cont =…
casked Bruno Esteves 31 -
-1
votes1
answer286
viewsQ: Why are you giving him endless noose?
Exercise: Write an algorithm to generate and write a table with s sine values of an angle A in radians, using the series of Truncated Mac-Laurin, presented below: A3 A5 A7 sen A = A - 6 + 120 - 5040…
casked Bruno Esteves 31 -
2
votes1
answer1217
viewsQ: Conversion from Farenheit to Centigrade always gives zero
This is the exercise: 1.12.3. Conversion from Farenheit degrees to centigrade is obtained by 5 C = 9(F - 32) Make an algorithm that calculates and writes a table of centigrade as a function of…