#include <stdio.h> int main(void) { int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d\n",a*b); printf("%d\n",2*a+2*b); return 0;}
2 4
8 12
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!