找回密碼
 立即註冊
搜索
查看: 74|回復: 0

new C

[複製鏈接]

85

主題

1

回帖

344

積分

抹茶泡芙

積分
344
發表於 2024-7-6 23:40:37 | 顯示全部樓層 |閱讀模式

#include <stdio.h>
#define PI 3.14159


int main() {
    float radius, area;
    printf("Enter the radius of the circle: ");
    scanf("%f", &radius);
    area = PI * radius * radius;
    printf("The area of the circle is %f square units.", area);
    return 0;
}

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

發帖測試區

Archiver|手機版|客服中心|小黑屋|酷泡芙

GMT+8, 2024-9-20 11:50

Powered by Discuz!

快速回復 返回頂部 返回列表