Hangover(1003)

#include 
#include <string>
using namespace std;

void main()
{
string card="card(s)";
double num=2;
double res=0;
double end;
cin>>end;
int what=0;
while (res<=end)
{
res+=1/(num++);
what++;
}
if (end>0)
cout<" "<}

转载于:https://www.cnblogs.com/tiandsp/archive/2012/02/09/2343983.html

你可能感兴趣的:(Hangover(1003))