Posts by Newton Sandey • 57 points
5 posts
-
-2
votes1
answer122
viewsQ: Wait for a function to finish running another
I have on my page a form with a button called "Approve" at the end, which when triggered opens a container/field to be filled before approval, however, I want before opening this container/field,…
-
0
votes1
answer117
viewsQ: How to make a Try catch with mathematical operators?
I’m doing an activity that consists of a simple calculator, but accepts operations with multiple operators (example: 1+2+3-4 = 2). I have already made a Try catch to handle the error if the user…
-
0
votes1
answer53
viewsQ: Why are you returning "Invalid Position"?
When I type 3, instead of asking for the Position I want to enter, it returns 'Invalid Option'. Could anyone tell me why? Follow the code: #include<stdio.h> #include<stdlib.h> int…
-
1
votes2
answers78
viewsQ: Doubt if Else returning 0
I’m trying to do the following exercise: 10)A fruit plant is selling fruit with the following price list: Até 5 Kg Acima de 5 Kg Morango R$ 2,50 por Kg R$ 2,20 por Kg Maçã R$ 1,80 por Kg R$ 1,50 por…
-
3
votes2
answers175
viewsQ: Doubt of if He is
Good evening, I was testing this C code of an activity* of my course, works ok if (c<101||c>103), works ok if if (c=101), but if (c=102) if instead of returning me ns=s+(s*0.2), is returning…