1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-10-18 08:13:38 +00:00
202401-programming-assignments/【实践课外】0.熟悉编程环境/7-3 计算长方形的周长和面积.c

13 lines
162 B
C

#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("C = %d\n", (a + b) * 2);
printf("S = %d\n", a * b);
return 0;
}