Ayuda
Hola bueno en el colegio me pidieron hacer un programa que me pidiera valores y me de resultado eso creo ya esta bien , bueno tambien me pidieron que hciiera una parte donde me de el valor de 3 lados y me ponga que tipo d etraingulo es si equilatero , isoceles o escaleno , bueno es ahi donde tengo mi error espero me puedan ayudar anexo el codigo para ver si voy bien :
|
Hola Givanti.
Si te fijas, se te ha olvidado poner un "punto y coma" (semicolon en inglés) en la línea anterior. El resto del código parece estar bien, aunque sólo lo he leído por encima. ¡Y sé bienvenido al maravilloso mundo de la programación!:) |
Saludos |
Aparte de eso, yo añadiría allgun paréntesis más a esa línea, para clarificar la prioridad de las operaciones.
|
Por la forma de poner los IF yo creo que le falta un ELSE,
y estoy de acuerdo con Neftali que debería utilizar algún paréntesis más, porque además de funcionar, también ha de ser fácilmente revisable. Un saludo, |
Tambien te recomiendo que mires http://www.clubdelphi.com/foros/guiaestilo.php, para facilitar el recibir ayuda en el futuro.
Es siempre mejor ser muy concreto en el titulo del hilo. "Ayuda" es muy abierto "Error de compilacion" todavia es muy abierto "Saca error 'missing operator semicolon'" y tienes un 10! ;) |
La franja horaria es GMT +2. Ahora son las 06:00:38. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi