1、2-45 编写一个程序,输入三角形的三条边的边长,求三角形的面积。2-45#include#includeint main()int a,b,c;int s,S;cinabc;s=(a+b+c)/2;S=powl(s*(s-a)*(s-b)*(s-c),0.5);if(S=0)coutint main()char ch;int a;coutch;if(ch=65 int result;cinvalue1value2;result=value1+value2-value1%value2; coutint main()const float i=32.0;const float j=5.0/9.0
2、;float degFahr;float degCel;cindegFahr;/ for(degFahr=0;degFahrint main()int Array20;int i,count=0,c=0;for(i=0;iArrayi;for(i=0;iint main()int Array100100=0;int n,temp;cinn;for(int i=0;iArrayij;for(int x=0;x#includeint main()int Array3;int *pA=Array;int *a=Array;int i;int temp;for(i=0;iArrayi;for(i=0;
3、iint main()int n;coutn;coutArrayi;pA+;for(i=0;iint main()char * pstr=“Enter a string:“;char str1100,str2100;coutint main()int number;int Array100;int i,j;cinnumber;for(i=0;number!=0;i+)Arrayi=number%10;number=number/10;j=i;for(i=j;i=0;i-)coutint main()float a2,b2,c2;int i;for(i=0;iai;for(i=0;ibi;for
4、(i=0;istruct studentchar num10;char name20;float grade3;float average;int main()student stu10;int i,j;float sum=0;for(i=0;i#includeint main()int a,b,c;int R;float p;float x1,x2;cinabc;R=b*b-4*a*c;if(R=0)p=sqrt(R);x1=(-b+p)/(2*a);x2=(-b-p)/(2*a);if(x1=x2)coutint main()char ch;cout=0)int i,end,j=0,k=0;cinsymbol;for(i=0;i=0) int count=1;cin.get(str,1000);/ while(!str0)/ for(int i=0;stri!=0;i+)if(stri= / cout#includeint main()int i,n=1,j=1;double s=0;for(i=0;(2*i+1)pow(10,6);i+)/*coutiendl;cout“*“;cout2*i+1endl;cout“*“;