程序源代码04

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




收藏到我的文章 改錯字
#include<cstdio> using namespace std; int main() { char a='A'; putchar(a); putchar('\
\'); putchar('\n'); char c; c=getchar(); putchar(c+1); return 0; } #include<cstdio>
using namespace std; char s[20]; int main() { gets(s); puts(s); return 0; }
#include<iostream> using namespace std; int main() { int a,b,c,s; cin>>a>>b; c=2*(a+b);
s=a*b; cout<<c<<" "<<s<<endl; return 0; }#include<iostream> using namespace std; int
main() { int n,a,b,c; cin>>n; a=n%10; b=n/10%10; c=n/100; cout<<a+b+c<<endl; return 0;
}#include<iostream> #include<cmath> using namespace std; int main() { double
x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; cout<<sqrt(pow(x1-x2,2)+pow(y1-y2,2)); return 0; }
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; char d,e;
cin>>d>>e; float f; cin>>f; cout<<"a="<<a<<" b="<<b<<" c="<<c<<endl; cout<<"d="<<d<<"
e="<<e<<" f="<<f<<endl; return 0; }#include<iostream> using namespace std; int main() {
char ch1,ch2; cin>>ch1; ch2=ch1-32; cout<<ch2<<endl; return 0; }#include<iostream>
#include<iomanip> using namespace std; int main() { int a,b,h; float area; cin>>a>>b>>h;
area=(a+b)*h/2.0; cout<<setprecision(2)<<fixed<<area<<endl; return 0; }
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章熱度:
文章難度:
文章質量:
說明:系統根據文章的熱度、難度、質量自動認證,已認證的文章將參與打字排名!

本文打字排名TOP20

登录后可见

用户更多文章推荐