㈠ c璇璦奼備笁瑙掑艦鐨勯潰縐
浣跨敤C璇璦璁$畻涓夎掑艦闈㈢Н鐨勭ず渚嬩唬鐮侊細
c#include<stdio.h>錛#include<math.h>錛宨nt main錛堬級錛宒ouble a錛宐錛宑錛宻錛宎rea銆俻rintf錛堣瘋緭鍏ヤ笁瑙掑艦鐨勪笁鏉¤竟鐨勯暱搴︼細 錛夛紱scanf錛%lf%lf%lf錛&a錛&b錛&c錛夛紱s=錛坅+ b+ c錛/2錛沘rea= sqrt錛坰*錛坰- a錛*錛坰- b錛*錛坰- c錛夛級錛沺rintf錛堜笁瑙掑艦鐨勯潰縐涓猴細%.2lf 錛宎rea錛夛紝return0銆
3銆侀潰鍚戣繃紼嬶細C璇璦鏄闈㈠悜榪囩▼鐨勮璦錛岃繖璁╃▼搴忕殑閫昏緫緇撴瀯鏇村姞娓呮櫚錛屾槗浜庣悊瑙e拰緇存姢銆傚悓鏃訛紝鐢變簬鍏墮潪闈㈠悜瀵硅薄鐨勭壒鎬э紝C璇璦鐨勮繍琛屾椂寮閿闈炲父灝忋
4銆佸箍娉涚殑搴旂敤棰嗗煙錛欳璇璦琚騫挎硾搴旂敤浜庢搷浣滅郴緇熴佸祵鍏ュ紡緋葷粺銆佹父鎴忓紑鍙戙佺郴緇熻蔣浠剁瓑棰嗗煙銆傚畠鏄涓縐嶉潪甯稿疄鐢ㄧ殑緙栫▼璇璦銆
5銆佸己澶х殑紺懼尯鏀鎸侊細C璇璦鏈夌潃搴炲ぇ鐨勭敤鎴風兢浣撳拰媧昏穬鐨勭ぞ鍖猴紝浣犲彲浠ユ壘鍒板ぇ閲忕殑寮婧愬簱鍜屽伐鍏鋒潵甯鍔╀綘寮鍙慍紼嬪簭銆傝繖澶уぇ鎻愰珮浜嗗紑鍙戞晥鐜囥