zz的成长
来源:互联网 发布:如何投诉淘宝客服态度 编辑:程序博客网 时间:2024/06/05 06:28
#include <iostream>
#include<math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char *argv[]) {
int x,a,y;
cout<<"输入常量a"<<endl;
cin>>a;
cout<<"输入x"<<endl;
cin>>x;
loop:
cin>>x;
if (x<=0)
{
cout<<"输入x"<<endl;
y=sqrt(a*a+x*x); }
else
y=3*a*a*a*x*x+4*a*x-1;
cout<<"输出y"<<y<<endl;
return 0;
}
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char *argv[]) {
int x,n;
x=0;
n=2;
while(x<1000)
{ n=n*2;
x=x+n*n;
}
n=n/2;
cout<<"最大n值"<<n<<endl;
return 0;
}
#include<math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char *argv[]) {
int x,a,y;
cout<<"输入常量a"<<endl;
cin>>a;
cout<<"输入x"<<endl;
cin>>x;
loop:
cin>>x;
if (x<=0)
{
cout<<"输入x"<<endl;
y=sqrt(a*a+x*x); }
else
y=3*a*a*a*x*x+4*a*x-1;
cout<<"输出y"<<y<<endl;
return 0;
}
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char *argv[]) {
int x,n;
x=0;
n=2;
while(x<1000)
{ n=n*2;
x=x+n*n;
}
n=n/2;
cout<<"最大n值"<<n<<endl;
return 0;
}
0 0
- zz的成长
- zz程序员成长的10个阶段
- 一个计算机高手的成长zz
- FreeBSD成长小记 zz
- 一个程序员的成长的六个阶段(zz)
- zz程序员成长之路
- 一个MM在软件公司成长的三年(佩服、欣赏)(ZZ)
- 一个优秀IT专家的成长历程---献给所有的颓废或即将颓废的人们(ZZ)
- Jamie Zawinski访谈:在折腾中成长 (zz.IS2120)
- oracle的FAQ -- zz
- 习惯的力量 (zz)
- X的配置-zz
- zz提问的智慧
- 写在zz的生日。
- JAVA的STATIC[ZZ]
- 误人子弟的微软(zz)
- 硬盘的爱情故事zz
- #define的用法zz
- 剑指offer(C++)——数据流中的中位数
- 华为李航:NLP 有 5 个基本问题,深度学习有4个做得很好
- Java注解的学习---深入理解Java注解、自己写一个Java注解
- ANDROID 一个app中有多个activity读取NFC标签问题
- Android studio添加第三方类库时出现的版本不兼容问题
- zz的成长
- Linux更改ssh服务远程登录配置
- EL表达式
- 【SSH进阶之路】Struts + Spring + Hibernate 进阶开端(一)
- ElasticSearch之CURL操作
- MPI之Reduce和Allreduce
- 13th浙江省赛K Highway Project
- 静态代理
- code[vs] 1474十进制-m进制