fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int wid,hei,area,cir;
  7.  
  8. scanf("%d",&wid);
  9. scanf("%d",&hei);
  10.  
  11. area = wid*hei;
  12. cir = (wid+hei)*2;
  13.  
  14. printf("%d\n",area);
  15. printf("%d\n",cir);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 4544KB
stdin
5
4
stdout
20
18