网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
根据三角形的基本定理完成填空,则表达式为【 】。 include include void mai

根据三角形的基本定理完成填空,则表达式为【 】。

include<iostream. h>

include<math. h>

void main()

{

double a,b,c,s,area;

cout<<"请输入三角形三边a,b,c:"<<end1;

cin>>a>b>>c;

if(______)

{

s=(a+b+c)/2;

area=sqrt(s*(s-a)*(s-b)* (s-c)),

cout<<"三角形的面积为:"<<area;

}

else

cout<<"不能构成三角形!"<<end1;

}


参考答案

更多 “ 根据三角形的基本定理完成填空,则表达式为【 】。 include include void mai 根据三角形的基本定理完成填空,则表达式为【 】。include<iostream. h>include<math. h>void main(){double a,b,c,s,area;cout<<"请输入三角形三边a,b,c:"<<end1;cin>>a>b>>c;if(______){s=(a+b+c)/2;area=sqrt(s*(s-a)*(s-b)* (s-c)),cout<<"三角形的面积为:"<<area;}elsecout<<"不能构成三角形!"<<end1;} ” 相关考题
考题 根据三角形的基本定理完成填空,则表达式应为______。 include include void 根据三角形的基本定理完成填空,则表达式应为______。include<iostream.h>include<math.h>void main( ){double a,b,e,s,area;cout<<"请输入三角形三边a,b,e,"<<endl;cin>>a>>b>>c;if(______){s=(a+b+c)/2;area=sqrt(s*(s-a)*(s-b)*(s-c));cout<<"三角形的面积为:"<<area;}elsecout<<"不能构成三角形!"<<endl;}

考题 下面程序运行时输出结果为【】。 include include class Rect { public: Rec 下面程序运行时输出结果为【 】。include<iostream.h>include<malloc.h>class Rect{public:Rect(int1,int w)(length=1;width=w;)void Print(){cout<<"Area:"<<length *width<<endl;)void *operator new(size-t size){return malloc(size);}void operator delete(void *p){free(p)private:int length,width;};void main(){Rect*p;p=new Rect(5,4);p->Print();delete p;}

考题 下列include命令中,正确的是() A.#inclue[string.h]B.#include{string.h}C.#include(string.h)D.#include

考题 在下列# include命令中,正确的一条是 ( )A.# include [string.h]B.# include {math.h}C.# include(stdio.h)D.# include<stdio.h>

考题 1、若程序中含有以下移位函数LED_PORT=_crol_(0xfe,1),则编程时必须包含以下哪条头文件()。A.#include <intrins.h>B.#include <stdio.h>C.#include <math.h>D.#include <absacc.h>

考题 若程序中含有以下移位函数LED_PORT=_crol_(0xfe,1),则编程时必须包含以下哪条头文件()。A.#include <absacc.h>B.#include <stdio.h>C.#include <intrins.h>D.#include <math.h>

考题 下列正确的文件包含命令是()。A.#include <file1.h>B.#include [file1.h]C.#include "file1.h"D.#include (file1.h)

考题 ()是正确的头文件包含预编译处理命令。A.#include <stdio.h>B.#include (stdio.h)C.#include 'stdio.h'D.#include {stdio.h}

考题 使用scanf函数需要在头文件中添加___.A.#include <stdio.h>B.#include <ctype.h>C.#include <float.h>D.include <iomanip.h>