Skip to content

Instantly share code, notes, and snippets.

@raryosu
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raryosu/1f506d38a3fbaa686f51 to your computer and use it in GitHub Desktop.
Save raryosu/1f506d38a3fbaa686f51 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int a, b, s, l;
scanf("%d%d", &a, &b);
// 面積の計算
s = a*b;
// 周の長さの計算
l = (a+b)*2;
printf("%d %d\n", s, l);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment