Advertisement
Joao_Joao

Questão 7 Lista de Exercícios IFPB

Apr 25th, 2022
675
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.   int b, a;
  5.   printf("Digite o valor da base do triangulo: ");
  6.   scanf("%d", &b);
  7.   printf("Digite o valor da altura do triangulo: ");
  8.   scanf("%d", &a);
  9.   printf("A area do triangulo eh: %d\n", (b*a)/2);
  10.  
  11.   return 0;
  12. }
  13.  
Advertisement
RAW Paste Data Copied
Advertisement