Posts by Andre Spindola • 61 points
5 posts
-
0
votes2
answers1083
viewsQ: How is the logic to print the numbers in ascending order in C
I created a code that takes a certain number set by the user, and makes the separation of pairs and odd, until then I was able to do, my problem is to put the numbers in ascending order so that the…
-
-2
votes2
answers112
viewsA: Problem banknotes and coins
I found some errors in your code, tidied and worked perfectly, first you are declaring integer values instead of floating, in the scanf you are asking for the value of the variable "value", but you…
-
2
votes1
answer1139
viewsA: Read only whole numbers in c
Swap int for float, int is for integers (1/2/3), float represents fractional numbers and real numbers (this includes integers). #include <stdio.h> #include <stdlib.h> int main () { float…
canswered Andre Spindola 61 -
0
votes1
answer133
viewsQ: How to declare null values in C
My problem is the next one I’m creating loop while which cannot receive values less than or equal to zero, and would also declare that it cannot receive empty values for the program force the user…
-
4
votes3
answers1169
viewsQ: Vector sum problem in C
Vector sum problem, I’m trying to put the sum of the vectors directly into loop, but he is not doing the sum of all but duplicating the last vector, I tested the same code in Portugol and it worked…