c语言编程练习题 《C语言程序设计》练习题

c\u8bed\u8a00\u7f16\u7a0b\u7ec3\u4e60\u98981

#include
"stdio.h"
main()
{
double
a=0,b;
int
i;
for(i=1;;i++)
{
printf("Enter
a
number:");
scanf("%lf",&b);
if(b>a)
a=b;
if(b<=0)
break;
}
if(a>=0)
printf("%lf\n",a);
}

\u7ecf\u9a8c\u8bc1\uff0cfloat\u6570\u636e\u4e0d\u591f\u7cbe\u786e\uff0c\u5982\u8f93\u5165100.62\uff0c\u8f93\u51fa\u7684\u5374\u662f\u5982100.620003\u3002\u6240\u4ee5\u7528\u4e86\u66f4\u7cbe\u786e\u7684double\u6570\u636e\u3002\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\u3002

\u4e00\u3001\u9009\u62e9\u9898
1\u3001C\u8bed\u8a00\u89c4\u5b9a\uff0c\u5728\u4e00\u4e2a\u6e90\u7a0b\u5e8f\u4e2d\uff0cmain()\u51fd\u6570\u7684\u4f4d\u7f6e\uff08C \uff09\u3002
A\uff09 \u5fc5\u987b\u5728\u6700\u5f00\u59cb B\uff09\u5fc5\u987b\u5728\u6700\u540e
C\uff09 \u53ef\u4ee5\u4efb\u610f D\uff09 \u5fc5\u987b\u5728\u7cfb\u7edf\u8c03\u7528\u7684\u5e93\u51fd\u6570\u540e\u9762

\u8fd9\u9898\u4f60\u6b7b\u8bb0\u5c31\u884c\uff0c\u4f60\u770b\u770b\u8fd9\u4e2a
\u4efb\u4f55\u4e00\u4e2aC\uff0b\uff0b\u7a0b\u5e8f\u90fd\u5fc5\u987b\u5b9a\u4e49\u4e00\u4e2amain\u51fd\u6570\uff0c\u5b83\u7684\u8fd4\u56de\u7c7b\u578b\u603b\u662fint\u7c7b\u578b\u3002\u8fd9\u4e2a\u51fd\u6570\u7531\u64cd\u4f5c\u7cfb\u7edf\u6765\u8c03\u7528\uff0c\u5728main\u51fd

\u6570\u6267\u884c\u5b8c\u4ee5\u540e\uff0c\u7a0b\u5e8f\u4e5f\u5c31\u7ec8\u6b62\u4e86\u3002 main\u4e5f\u53ef\u4ee5\u4f7f\u7528return\u5411\u64cd\u4f5c\u7cfb\u7edf\u8fd4\u56de\u4e00\u4e2a\u503c\uff0c\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u53ef\u4ee5\u68c0\u6d4b

main\u7684\u8fd4\u56de\u503c\u3002\u4e00\u822c\u7ea6\u5b9a\u5728main\u8fd4\u56de0\u65f6\uff0c\u8868\u793a\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u5176\u5b83\u975e\u96f6\u503c\u8868\u793a\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\u60c5\u51b5\u3002
\u82e5\u6ca1\u6709\u4e3amain\u6307\u5b9a\u8fd4\u56de\u503c\uff0c\u8fd9\u6837\u8fd4\u56de\u503c\u662f\u4efb\u610f\u7684\u3002

2\u3001\u82e5x\u548cy\u90fd\u662fint \u578b\u53d8\u91cf\uff0cx=100,y=200,\u4e14\u6709\u4ee5\u4e0b\u7a0b\u5e8f\u6bb5\uff0cprintf(\u201c%d\u201d,(x,y));\u5219\u5176\u8f93\u51fa\u7ed3\u679c\u662f\uff08 A\uff09\u3002
A\uff09 200 B\uff09 100 C\uff09 100 200 D\uff09 \u8f93\u51fa\u4e0d\u786e\u5b9a\u503c

\uff08x\uff0cy\uff09\u8fd9\u662f\u4e2a\u9017\u53f7\u8868\u8fbe\u5f0f\uff0c\u8868\u8fbe\u5f0f\u7684\u503c\u4e3a\u6700\u540e\u4e00\u4e2a\u9017\u53f7\u540e\u9762\u8868\u8fbe\u5f0f\u7684\u503c\uff0c\u56e0\u4e3a\u524d\u9762\u6709\u4e00\u4e2a%d\uff0c\u6240\u4ee5\u8f93\u51fa \u7684\u662fy\u7684

\u503c

3\u3001\u5408\u6cd5\u7684C\u8bed\u6cd5\u5b57\u7b26\u5e38\u91cf\u662f\uff08C \uff09\u3002
A\uff09 \u201cA\u201d B\uff09 65 C\uff09 \u2018\t\u2019 D\uff09 A

\u5b57\u7b26\u90fd\u662f\u7531\u4e24\u4e2a\u5355\u5f15\u53f7\u62ec\u8d77\u6765\u7684\uff0c\u6b7b\u8bb0\uff0c a\uff09\u4e3a\u5b57\u7b26\u4e32

4\u3001\u8868\u8fbe\u5f0f\u201c3\uff01\uff1d4\u201d\u7684\u503c\u662f\uff08A \uff09\u3002
A\uff09 1 B\uff09 0 C\uff09 T D\uff09 F

!=\u662fc\u8bed\u8a00\u7684\u903b\u8f91\u8fd0\u7b97\u7b26\uff0c3\uff01\uff1d4\u4e3a\u771f\uff0c\u591a\u4ee5\u5f971\uff0c 3\uff1d4\u4e3a\u5047\uff0c\u503c\u4e3a0

5\u3001 int a=1,b=2,c=3,d=4,\u6267\u884c\u4e0b\u5217\u7a0b\u5e8f\u540ex\u7684\u503c\u4e3a\uff08 C\uff09\u3002
if(a>b) x=1;else if (c>d) x=2;else x=3;
A) 1 B) 2 C) 3 D) 4

\u5982\u679ca>b,1>2\u4e3a\u5047\uff0c\u4e0d\u6267\u884cx=1\uff0c\u6267\u884celse if(c>d)\uff0c\u5224\u65ad\uff1a3>4\u4e3a\u5047\uff0c\u4e0d\u6267\u884cx=2\uff0c\u6267\u884c=3\uff0c\u5b8c

6\u3001\u4ee5\u4e0b\u7a0b\u5e8f\u7684\u8f93\u51fa\u7ed3\u679c\u662f\uff08D\uff09\u3002
Int x=10,y=3,z;printf(\u201c%d\n\u201d,z=(x%y,x/y));
A)1 B) 0 C) 4 D) 3

\u9017\u53f7\u8868\u8fbe\u5f0f\uff0cx%y\uff0c10%3\uff0c\u55463\u4f591\uff0c\u6a21\u53d6\u4f59\u65701\uff0cx/y\uff0c10/3,\u55463\u4f591\uff0c\u9664\u6cd5\u53d6\u55463\uff0c\u9017\u53f7\u8868\u8fbe\u5f0f\uff0c\u8868\u8fbe\u5f0f\u7684\u503c\u4e3a\u6700\u540e\u4e00

\u4e2a\u9017\u53f7\u540e\u9762\u8868\u8fbe\u5f0f\u7684\u503c

7\u3001\u4e3a\u8868\u793ax\u2265y\u2265z\uff0c\u5e94\u4f7f\u7528C\u8bed\u8a00\u8868\u8fbe\u5f0f\uff08A \uff09\u3002
A\uff09 \uff08x>=y\uff09&&(y>=z) B) (x>=y) AND (y>=z)
C) (x>=y>=z) D) (x>=y) & (y>=z)

\u5173\u7cfb\u8fd0\u7b97\u7b26\uff0cx>=y\u4e0ey>=z\u5fc5\u987b\u662f\u540c\u65f6\u6210\u7acb\u7684\uff0c\u56e0\u6b64\u8981\u7528\u903b\u8f91\u8fd0\u7b97\u7b26&&\uff0c&&\u4e0e\u7684\u610f\u601d

8\u3001\u5408\u6cd5\u7684\u6570\u7ec4\u5b9a\u4e49\u662f\uff08 a \uff09\u3002
A\uff09 int a[ ]=\u201dstring\u201d; B) int a[5]={0,1,2,3,4,5};
C) char a=\u201dstring\u201d; D) char a[ ]={\u201c01234\u201d};

a\u4e0d\u6307\u5b9a\u6570\u7ec4\u957f\u5ea6\u5b9a\u4e49,\u6b63\u786e
b\u6570\u7ec4\u957f\u5ea6\u4e3a5\uff0c\u5c31\u662f\u91cc\u9762\u67095\u4e2a\u6570\u7ec4\u5143\u7d20\uff0c\u591a\u4e86\u4e00\u4e2a\u6570\u7ec4\u5143\u7d20
c\u5b9a\u4e49a\u4e0d\u662f\u6570\u7ec4\u800c\u662f\u4e00\u4e2a\u53d8\u91cf\uff0c\u7d20\u7ec4\u5e94\u8be5\u662fa[]
d\u662f\u9519\u7684\uff0c\u5b57\u7b26\u4e32\u662f\u8fd9\u6837\u5b9a\u4e49\u7684\uff1achar a[ ]={'0','1','2','3','4','\0'};
[4]\u4e2d\u6570\u5b57\u662f\u6570\u7ec4\u957f\u5ea6\uff0c\u8bf4\u660e\u91cc\u9762\u6709\u51e0\u4e2a\u5143\u7d20


9\u3001\u8bbex\u548cy\u5747\u4e3aint\u578b\u53d8\u91cf\uff0c\u5219\u8bed\u53e5\u201cx+=y;y=x-y;x-=y\uff1b\u201d\u7684\u529f\u80fd\u662f\uff08D\uff09\u3002
A) \u628ax\u548cy\u6309\u4ece\u5c0f\u5230\u5927\u6392\u5217 B\uff09\u628ax\u548cy\u6309\u4ece\u5927\u5230\u5c0f\u6392\u5217
C\uff09\u65e0\u786e\u5b9a\u7ed3\u679c D)\u4ea4\u6362x\u548cy\u4e2d\u7684\u503c

x+=y\u7b49\u540c\u4e8ex=x+y,\u628ax\u52a0y\u7684\u503c\u8d4b\u7ed9x\uff0cx\u73b0\u5728\u5b58\u7684\u662fx\u4e0ey\u7684\u548c
y=x-y\u628ax\u51cfy\u7684\u503c\u8d4b\u7ed9y\uff0cx\u73b0\u5728\u5b58\u7684\u662fx\u4e0ey\u7684\u548c \uff08x+y\uff09-y=x\uff0c\u628ax\u7684\u503c\u7ed9y\uff0cy\u5b58x\u7684\u503c
x-=y\u7b49\u540c\u4e8ex=x-y\uff0c\u628ax\u51cfy\u7684\u503c\u8d4b\u7ed9x\uff0c\uff08x+y\uff09-y=x\uff0c\u73b0\u5728\u7684\u540e\u9762\u7684y\u5b58\u7684\u662fx\u7684\u503c\uff0c\u505a\u5b8c\u540ex\u91cc\u5b58\u7684\u503c\u662fy\uff0c\u5b8c\u6210\u4ea4\u6362


10\u3001\u82e5\u5df2\u5b9a\u4e49x\u548cy\u4e3adouble\u7c7b\u578b\uff0c\u5219\u8868\u8fbe\u5f0f\u201cx=1,y=x+3/2\u201d\u7684\u503c\u662f\uff08C\uff09\u3002
A\uff09 1 B\uff092 C\uff09 2.0 D) 1.0

\u9017\u53f7\u8868\u8fbe\u5f0f\uff0c\u5148\u8ba9x=1\u5728\u7b97y=x+3/2\uff0c\u5f972\uff0c\u56e0\u4e3a\u662fdouble\u7c7b\u578b\uff0c\u6240\u4ee5\u6709\u5c0f\u6570\u70b9

11\u3001\u4e0b\u5217\u6761\u4ef6\u8bed\u53e5\u4e2d\uff0c\u529f\u80fd\u4e0e\u5176\u4ed6\u8bed\u53e5\u4e0d\u540c\u7684\u662f (D)
\u3000\u3000 A) if(a) printf("%d\n",x); else printf("%d\n",y);
\u3000\u3000 B) if(a==0) printf("%d\n",y); else printf("%d\n",x);
\u3000\u3000 C) if (a!=0) printf("%d\n",x); else printf("%d\n",y);
\u3000\u3000 D) if(a==0) printf("%d\n",x); else printf("%d\n",y);

a \u5982\u679ca\u4e3a\u771f\u8f93\u51fax\uff0c\u5982\u679ca\u4e3a\u5047\u8f93\u51fay
b \u5982\u679ca==0\uff0c\u4e5f\u5c31\u662f\u4e3a\u5047\uff0c\u8f93\u51fay\uff0ca\u4e3a\u771f\u8f93\u51fax\uff0c\u540ca
c \u5982\u679ca\uff01=0\u4e3a\u771f\uff0c\u8f93\u51fax\uff0ca\u4e3a\u5047\u8f93\u51fay\u540c\u4e0a
d \u5982\u679ca\u4e3a\u5047\u8f93\u51fax\uff0c\u5982\u679ca\u4e3a\u771f\u8f93\u51fay\uff0c\u4e0e\u4ee5\u4e0a\u7684\u90fd\u4e0d\u540c

12\u3001\u4ee5\u4e0b\u80fd\u6b63\u786e\u5b9a\u4e49\u4e8c\u7ef4\u6570\u7ec4\u7684\u662f (C)
\u3000\u3000 A) int a[][3]; B) int a[][3]=2{2*3};
\u3000\u3000 C) int a[][3]={0}; D) int a[2][3]={{1},{2},{3,4}};

a \u6ca1\u6709\u7ed9\u6570\u7ec4\u8d4b\u521d\u503c
b {}\u91cc\u4e0d\u80fd\u6709*
c \u6b63\u786e\uff0c\u8bb0\u4f4f\u7b2c\u4e00\u4e2a[]\u4e2d\u53ef\u4ee5\u4e3a\u7a7a\uff0c\u7b2c\u4e8c\u4e2a[]\u4e0d\u80fd\u4e3a\u7a7a\uff0c\u6b7b\u8bb0
d a[2][3] \u7684\u610f\u601d\u662f\u6709\u4e24\u4e2a\u4e00\u7ef4\u6570\u7ec4\uff0c\u6bcf\u4e2a\u4e00\u7ef4\u6570\u7ec4\u91cc\u67093\u4e2a\u5143\u7d20\uff0c{{1},{2},{3,4}}; \u5979\u7684\u610f\u601d\u662f\u4e09\u4e2a\u6570\u7ec4\uff0c{}\u4e2d\u7684\u6bcf\u4e00\u4e2a{}\u4ee3\u8868\u4e00\u4e2a\u6570\u7ec4\uff0c\u91cc\u8fb9\u7684\u6570\u4e3a\u6570\u7ec4\u5143\u7d20

13\u3001\u7528C\u8bed\u8a00\u7f16\u5199\u7684\u4ee3\u7801\u7a0b\u5e8f (B)
\u3000\u3000 A)\u53ef\u7acb\u5373\u6267\u884c B)\u662f\u4e00\u4e2a\u6e90\u7a0b\u5e8f
\u3000\u3000 C)\u7ecf\u8fc7\u7f16\u8bd1\u5373\u53ef\u6267\u884c D)\u7ecf\u8fc7\u7f16\u8bd1\u89e3\u91ca\u624d\u80fd\u6267\u884c

\u6b7b\u8bb0

第一个是输入半径,输出圆的直径、周长、面积
const double p = 3.14159;
void main()
{
double radius = 0;
printf("Radius of Circle:");
scanf("%lf", &radius);

printf("Diameter:%lf, Circumference:%lf, Area:%f ", 2*radius, 2*p*radius, p*radius*radius);
}

第二个是根据给定的余额和利息,计算一年以后的余额
void main()
{
double initBalance = 6000;
double interestRate = 0.0425;
printf("Interestcalculation program.\nStarting balance:%.lf Annual\ninterest rate percentage:%.4lf\n", initBalance,interestRate);
printf("One year balance:%.lf", initBalance*(1+interestRate));
}

翻译为
编写程序,读取一个圆的半径和打印该圆的直径,周长和面积。使用值3.14159为“P”。写一个程序:承担起平衡6000年利率为4.25%。你的程序应该显示一年后的新的平衡。没有存款或退出–只是利息支付。你的程序应该能够重现以下samplerun:interestcalculation程序。startingbalance?6000annualinterest率?4.25balanceafter一年:6255

#include<iostream>
using namespace std;
const float pi=3.14;
void circle(float);
int main()
{
float R;
cout<<"please input the radius of a circle: ";
cin>>R;
circle(R);
return 0;
}
void circle(float r)
{
float dia,circumference,area;
dia=2*r;
cout<<"the diameter is :"<<dia<<endl;
circumference=dia*pi;
cout<<"the circumference is :"<<circumference<<endl;
area=pi*r*r;
cout<<"the area is :"<<area<<endl;

}

一楼的回答是固定的利率啊?应该由程序运行时输入的利率来计算才对的啊?
program First:
main()
{
float p=3.14159;
float r,d,l,s;
printf("r=");
scanf("%f",&r);
d=2*r;
l=2*p*r;
s=p*r*r;
printf("d=%4.2f l=%4.2f s=%4.2f\n",d,l,s);
getch();
}

program second:
main()
{
float a,p;
printf("Starting balance?");
scanf("%f",&a);
printf("Interest rate percentage?");
scanf("%f",&p);
a*=(1+p/100);
printf("Balance after one year: %4.0f\n",a);
getch();
}

呵呵,你在国外读书啊?题目竟然是用英文出的,不过看起来挺简单的啊

#include "stdafx.h"
#include<iostream>
using namespace std;

int main()
{
float r ,d,c,a;
float p = 3.14159;

r = -1;
while ( r <= 0)
{
cout<<"Please input the radius of a circle :"<<endl;
cin>>r;

if(r <= 0)
cout<<"The radius should be over than 0 !"<<endl;
}

d = 2.0 * r;
c = d * p;
a = p * r * r;

cout<<"The diameter is :"<< d <<endl;
cout<<"The circumference is :"<< c <<endl;
cout<<"The area is :"<< a <<endl;
system("pause");
return 0;
}

  • C璇█缂栫▼棰姹100浠ュ唴鎵鏈夊伓鏁扮殑鍜,鍗2+4+6+鈥+100銆
    绛旓細1銆侀亶鍘100浠ュ唴鎵鏈夋暟锛屽垽鏂鏋滄槸鍋舵暟锛屽垯绱姞銆傚弬鑰冧唬鐮侊細include <stdio.h>int main(){ int n,s=0; for(n = 1; n <= 100; n ++)//閬嶅巻鎵鏈夋暟鍊笺 if(n%2==0) //鍋舵暟 s+=n;//绱姞銆 printf("%d\n",s);//杈撳嚭缁撴灉銆 return 0; }2銆佺洿鎺ラ亶鍘嗗伓鏁帮紝...
  • C璇█绋嬪簭璁捐缂栫▼棰:
    绛旓細printf("灏忓啓瀛楁瘝涓:%c",c+32); getch();}3銆#include 鈥渟tdio.h鈥#include "math.h"main(){ double a,b,c; double p; double area; printf("璇峰垎鍒緭鍏ヤ笁鏉¤竟鐨勯暱搴:"); scanf("%lf %lf %lf",&a,&b,&c); p=(a+b+c)/2; area=sqrt( p*(p-a)*(p-b)*(p-c)); printf("涓夎...
  • 姹備竴浜C璇█缁冧範棰,瓒婂瓒婂ソ,鏈夌瓟妗堟洿濂!
    绛旓細printf("%c%c%c%c%c\n",b,a,a,a,b); printf("%c%c%c%c%c\n",a,b,a,b,a); printf("%c%c%c%c%c\n",a,a,b,a,a); printf("%c%c%c%c%c\n",a,b,a,b,a); printf("%c%c%c%c%c\n",b,a,a,a,b); getch(); }===銆愮▼搴8銆戦鐩:杈撳嚭9*9鍙h瘈銆1.绋嬪簭鍒嗘瀽:鍒...
  • c璇█ 棰樼洰
    绛旓細&score); gradescore>90 'a':(score>60 'b':'c'); printf("%d belongs to %c",score,grade); } 銆愮▼搴15銆 棰樼洰:鍒╃敤鏉′欢杩愮畻绗︾殑宓屽鏉ュ畬鎴愭棰:瀛︿範鎴愮哗>90鍒嗙殑鍚屽鐢ˋ琛ㄧず,60-89鍒嗕箣闂寸殑鐢˙琛ㄧず, 60鍒嗕互涓嬬殑鐢C琛ㄧず銆
  • c璇█绋嬪簭璁捐鏁欑▼绛旀c璇█绋嬪簭璁捐缁冧範棰
    绛旓細c璇█绋嬪簭璁捐缁冧範棰 绡囦竴:c璇█绋嬪簭璁捐鍩虹鍗曞厓鎬荤粨涓庣粌涔犻鍙婄瓟妗 銆C璇█绋嬪簭璁捐銆嬪崟鍏冩荤粨涓庣粌涔犻 绛旀 鍗曞厓涓 绋嬪簭璁捐瀹忚璁よ瘑 鍗曞厓鎬荤粨鎻愬崌 鏈崟鍏冧腑,鏍稿績鍐呭鏈塁璇█绋嬪簭妗嗘灦缁撴瀯銆佺▼搴忕殑鏋勬垚鍜岀▼搴忓紑鍙戣繃绋嬨傞氳繃鏈崟鍏 鐨勫涔,鎴戜滑搴旇鐭ラ亾: 1.C璇█绋嬪簭鏈鍩烘湰鐨勭▼搴忔鏋剁敱涓ら儴鍒嗘瀯鎴,鍒嗗埆鏄: (1) ...
  • 姹C璇█涔犻!
    绛旓細棰樼洰:鍒╃敤鏉′欢杩愮畻绗︾殑宓屽鏉ュ畬鎴愭棰:瀛︿範鎴愮哗>=90鍒嗙殑鍚屽鐢ˋ琛ㄧず,60-89鍒嗕箣闂寸殑鐢˙琛ㄧず,60鍒嗕互涓嬬殑鐢–琛ㄧず銆1.绋嬪簭鍒嗘瀽:(a>b)?a:b杩欐槸鏉′欢杩愮畻绗︾殑鍩烘湰渚嬪瓙銆2.绋嬪簭婧愪唬鐮:main(){ int score; char grade; printf("please input a score\n"); scanf("%d",&score); grade=score>=90?'A':(...
  • 姹C璇█棰樼洰
    绛旓細c璇█缁忓吀100棰:銆愮▼搴1銆戦鐩:鏈1,2,3,4涓暟瀛,鑳界粍鎴愬灏戜釜浜掍笉鐩稿悓涓旀棤閲嶅鏁板瓧鐨勪笁浣嶆暟 閮芥槸澶氬皯 1.绋嬪簭鍒嗘瀽:鍙~鍦ㄧ櫨浣,鍗佷綅,涓綅鐨勬暟瀛楅兘鏄1,2,3,4.缁勬垚鎵鏈夌殑鎺掑垪鍚庡啀鍘绘帀涓嶆弧瓒虫潯浠剁殑鎺掑垪. 2.绋嬪簭婧愪唬鐮: main(){int i,j,k;printf("\n");for(i1;i<5;i++) /*浠ヤ笅涓轰笁閲嶅惊鐜*/...
  • c璇█绋嬪簭璁捐缂栫▼棰
    绛旓細缁冧範1.include<stdio.h> include<math.h> int main(){ float a,b,c,d,e;printf("璇疯緭鍏ョ涓涓搴︽暟:");scanf("%f",&a);printf("\n璇疯緭鍏ョ浜屼釜瑙掑害鏁:");scanf("%f",&b);c = 180 - a - b;d = 3.141592/180;e = sin(a*d) + sin(b*d) + sin(c*d);printf("\n...
  • c璇█...
    绛旓細鎴戣C璇█寰幆杩欎釜绔犺妭鐨缁冧範棰樼洰鎴戣鏈绠鍗曟渶绠鍗曠殑缁冧範棰樼洰鍟!!!闅剧殑鎴戜笉瑕佹垜鐜板湪杩1鍔3鐨勫鏁板拰涔熺敤鐐逛笉浼氬晩璇蜂綘浠府鎴戜竴涓嬪暒... 鎴戣C璇█寰幆杩欎釜绔犺妭鐨勭粌涔犻鐩垜瑕佹渶绠鍗曟渶绠鍗曠殑缁冧範棰樼洰鍟!!!闅剧殑鎴戜笉瑕佹垜鐜板湪杩1鍔3鐨勫鏁板拰涔熺敤鐐逛笉浼氬晩璇蜂綘浠府鎴戜竴涓嬪暒 灞曞紑  ...
  • c璇█椤哄簭缁撴瀯缁冧範棰
    绛旓細area); return 0;} 銆愪緥2銆戞眰ax2+bx+c=0鏂圭▼鐨勬牴锛宎銆乥銆乧鐢遍敭鐩樿緭鍏ワ紝璁綽2-4ac>0銆傛簮绋嬪簭濡備笅锛歩nclude <stdio.h>#include <math.h>int main(void){ float a,b,c,disc,x1,x2,p,q; scanf("a=%f,b=%f,c=%f",&a,&b,&c); disc=b*b-4*a*c; p=-b/(...
  • 本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网