Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- void l (int a){
- if ((a-1)>0)
- cout << log(a-1)<<'\n';
- else cout<<"no\n";
- }
- int main(){
- int a, b;
- double h;
- cin>>a>>b>>h;
- for (int i=a; i<=b; i+=h){
- l(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement