Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  是
Language: C/C++
Code:
#include <iostream>
using namespace std; 
int main()
{
int a,b,c,d;
cout<<"是否有强壮?1.否2.是"<<endl;
cin>>d>>endl;
double e;
cout<<"请输入气血:"<<endl;
cin>>a>>endl;
cout<<"请输入体质属性点"<<endl;
cin>>b>>endl;
cout<<"请当前体力资质"<<endl;
cin>>c>>endl;
if(d==1)
{
e=(a-50)/5/c;
}
if(d==2)
{
e=(a-75)/5/c;
}
else
cout<<"您的输入有误"<<endl;
return 0;
}
          
Comments: