nikolas_serafini

Lista 1 - Exercício 33

May 22nd, 2013
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.         float comp,lar;
  8.  
  9.     printf("Entre com o comprimento e largura do retangulo : \n"); scanf("%f %f",&comp,&lar);
  10.     printf("Area = %f\nPerimetro = %f",comp*lar,comp+lar);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment