Serendi_Pity @ 2022-08-29 21:23:33
#include<iostream>
using namespace std;
int main(){
int a;
double b=1,c=1;
cin>>a;
while(c<=a){
b+=1/c;
c++;
}
cout<<b;
return 0;
}
by hhw_khw @ 2022-08-29 22:07:47
请审题。