TP1 ejercicio 7 #15
Answered
by
curambar
JulianCaceres002
asked this question in
Preguntas y Respuestas
Replies: 2 comments 1 reply
-
La función debe seguir la forma dada en la consigna; no está permitido 'devolver' valores con Que un condicional en el |
Beta Was this translation helpful? Give feedback.
1 reply
-
En lugar de usar el valor del bool en el printf, podes hacer un if, si el
bool es true imprimís un mensaje, si es false imprimís otro distinto.
…On Tue, Aug 13, 2024, 15:08 JulianCaceres002 ***@***.***> wrote:
En el ejecicio 7, el de numeros primos, es correcto retornar los valores 1
o 0 como valores true o false, o debe aparecer en terminar true o false
explicitamente? Porque no encontre un especificador de formato printf para
bool.
—
Reply to this email directly, view it on GitHub
<#15>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5V4NX4PQ6BD5FATFLPT7TZRJDQTAVCNFSM6AAAAABMOZD42CVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGA2DSOBVG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JulianCaceres002
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
En el ejecicio 7, el de numeros primos, es correcto retornar los valores 1 o 0 como valores true o false, o debe aparecer en terminar true o false explicitamente? Porque no encontre un especificador de formato printf para bool.
Beta Was this translation helpful? Give feedback.
All reactions