#include<iostream>
using namespace std;
int main()
{
int i,j,k;
for(i=1;i<=4;i++)
{
for(j=0;j<2*i-1;j++)
cout<<"*";
cout<<endl;
}
......................
阅读全部
|
小黎同学
贴于 2022年10月30日 10:35
hide
bbsi
#include <stdio.h>
int main() {
printf("我是中国人!生是中国人,死是中国魂!美丽中国我爱你(づ ̄3 ̄)づ╭❤~\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("加油努力,中国我爱你!!! %d 次\n", i);
}
printf("\n\n爱国的心形图案:");
......................
阅读全部
|
小草莓yy
贴于 2022年10月29日 20:42
hide
bbsi
#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>>x;
if(x>=10)
{
y=x-1;
cout<<"y"<<y<<endl;
}
else if(1<x<10)
......................
阅读全部
|
小黎同学
贴于 2022年10月29日 16:11
hide
bbsi
#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>>x;
if(x>=10)
{
y=x-1;
cout<<"y"<<y<<endl;
}
else if(1<x<10)
......................
阅读全部
|
小黎同学
贴于 2022年10月29日 16:11
hide
bbsi
# include <iostream>
using namespace std;
int main()
{
int a,b,c,temp;
cin>>a>>b>>c;
if(a>b)
{
temp=a;
a=b;
b=temp;
}
......................
阅读全部
|
小黎同学
贴于 2022年10月27日 11:48
hide
bbsi
#include <iostream>
using namespace std;
int main ()
{
double r,c;
cout<<"输入圆的半径"<<endl;
cin>>r;
c=2*r*3.14;
cout<<"圆的周长为"<<c<<endl;
return 0;
}
阅读全部
|
小黎同学
贴于 2022年10月23日 16:21
hide
bbsi
#include <iostream>
using namespace std;
int main()
{
cout<<"*****"<<endl;
cout<<"欢迎光临"<<endl;
cout<<"*****"<<endl;
return 0;
}
阅读全部
|
小黎同学
贴于 2022年10月23日 09:26
hide
bbsi
#include <iostream>
using namespace std;
int main()
{
cout<<"*****"<<endl;
cout<<"欢迎光临"<<endl;
cout<<"*****"<<endl;
return 0;
}
阅读全部
|
小黎同学
贴于 2022年10月23日 09:26
hide
bbsi
#include <stdio.h>
#include <iostream>
#include <math.h>
float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}
float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -= 0.001f)
if (f(x, y, z) <= 0.0f) {
......................
阅读全部
|
白客风
贴于 2022年10月20日 19:09
hide
bbsi
#include<stdio.h>
int main()
{int i;
float x,max;
printf("请输入一个数:");
scanf("%f",&x);
max=x;
for(i=1;i<=9;i++)
{
printf("请输入第%d个数:",i+1);
scanf("%f",&x);
if(x>max)
......................
阅读全部
|
我是小白1
贴于 2022年10月18日 16:21
hide
bbsi