#include<stdio.h> int main() { float x=3.0f,y=4.0f; printf("周长:%.2f ",(x+y)*2); printf("面积:%.2f ",x*y); }
觉得有用的话采纳一下哈