zmxONE Posted October 2, 2011 Report Share Posted October 2, 2011 como eu faço um algoritmo que calcule e mostre a área de um triângulo. Sabe-se que: Area=(base*altura)/2? Quote Link to comment Share on other sites More sharing options...
0 cyberd Posted October 8, 2011 Report Share Posted October 8, 2011 Acredito que sua mensagem esteja no local errado, mas de qualquer forma...#include <stdio.h> int main() { float base,altura,area; printf("\nDigite a base do triangulo: "); scanf("%f",&base); printf("\nDigite a altura do triangulo: "); scanf("%f",&altura); area = ((base*altura)/2); printf("\nA area do triangulo e: %.2f\n\n",area); return(0); } Quote Link to comment Share on other sites More sharing options...
0 Durub Posted October 9, 2011 Report Share Posted October 9, 2011 Movido. Obrigado!Abraços. Quote Link to comment Share on other sites More sharing options...
Question
zmxONE
como eu faço um algoritmo que calcule e mostre a área de um triângulo. Sabe-se que: Area=(base*altura)/2?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.