程序源代码07

貢獻者:- - 類別:代码 時間:2018-12-20 14:05:39 收藏數:18 評分:0
返回上页 舉報此文章
请选择举报理由:




收藏到我的文章 改錯字
#include<iostream> using namespace std; #define PI 3.14159
int main() { double spuare=0,volume=0,redius=0; cin>>redius;
spuare=3.14159*redius*redius; volume=4*3.14159*redius*redius*redius/3;
cout<<"spuare="<<spuare<<"volume="<<volume<<endl; return 0; }#include<iostream> using
namespace std; int main() { char i,j; i='c'; j='d'; i=i-32; j=j-32; cout<<i<<"
"<<j<<endl; return 0; }#include<iostream> #include<cmath> using namespace std; int main
() { cout<<ceil(-5.01)<<endl; cout<<floor(-5.99)<<endl; cout<<pow(3.5,2.0)<<endl;
cout<<pow(-5,3)<<endl; cout<<sqrt(100.0)<<endl; return 0; }#include<iostream> using
namespace std; int main() { int a,b,c,d; cin>>a>>b; a*=b; b--; (c=d=a)=b; d=(a++,b
+10,c--); cout<<a<<" "<<b<<" "<<c<<" "<<d<<endl; return 0; }#include<iostream> using
namespace std; int main() { int i=1; i=(i+1)+(i+1); cout<<i<<endl; return 0; }
#include<cstdio> using namespace std; int main() { int b=13,a=10; (a=(b*b))+=4; printf
("%d %d\n",a,b); return 0; }#include<iostream> using namespace std; int main() { int
a,b,c; long long s; a=1532646572; b=1458679433; c=1253467832; s=(long long)a+b+c;
cout<<"s="<<s<<endl; return 0; }#include<iostream> #include<cstdio> using namespace std;
int main() { short a,b; a=32768; b=a; printf("%d %d\n",a,b); return 0; }
#include<iostream> using namespace std; int main() { int a=12,b=3; char c='a'; float
d=3.51; long long e=1000000000; double f=999999999.99,x,y,z; x=a+c+b*d-f/e; y=(int)
3.999+(int)4.001; z=(double)102+'9'; cout<<x<<' '<<y<<' '<<z<<endl; return 0;
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章熱度:
文章難度:
文章質量:
說明:系統根據文章的熱度、難度、質量自動認證,已認證的文章將參與打字排名!

本文打字排名TOP20

登录后可见

用户更多文章推荐