1.
#include<bits/stdc++.h>
using namespace std;
int main()
{
float total=0;
for(float i=1;i<=50;i++){
total+=1/i;
}
cout<<total;
//samon247
return 0;
}
2.
#include<bits/stdc++.h>
using namespace std;
int main()
{
float t,total=0;
for(float i=1;i<=10;i++){
t=i*2;
total+=1/t;
}
cout<<total;
//samon247
return 0;
}