4 and 5Solution4 include include using namespace std int mai
 4 and 5
Solution
4)
#include<iostream>
 #include<cmath>
 using namespace std;
 int main()
 {
 int n,k;
 double s;
 cout<<\"\  enter n , k : \";
 cin>>n;
 cin>>k;
 abc:
 cout<<\"\  enter n between 0 and 180 :\";
 cin>>n;
 if(!(n>=0&&n<=180))
 goto abc;
s=0.0;
 for(int i=1;i<=n;i++)
 {
 s=s+(pow(k,sqrt(i)))*sqrt(n/i);
 }
 cout<<\"s=\"<<s;
 return 0;
 }

