fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y;
  5. scanf("%d",&x);
  6. scanf("%d",&y);
  7. printf("横の長さが%d、縦の長さが%dの四角形である、面積と周の長さはそれぞれ",x,y);
  8. x=x*y;
  9. y=(x/y+y)*2;
  10. printf("%d、%d",x,y);
  11. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
横の長さが-1895838448、縦の長さが32767の四角形である、面積と周の長さはそれぞれ1468543728、503355934