Advertisement
brleal

Area

Mar 5th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. //http://pastebin.com/YkZauxj1
  4. int main(){
  5.  float area =0,base=0,altura=0;
  6.     printf("Digite o valor da Base: ");
  7.     scanf("%f",&base);
  8.     printf("Digite o Valor da Altura:  ");
  9.     scanf("%f",&altura);
  10.  
  11.     area = (altura*base)/2;
  12.     printf("Resultado %.2f",area);
  13.  
  14.     system("pause");
  15.     return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement