Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. void l (int a){
  6. if ((a-1)>0)
  7. cout << log(a-1)<<'\n';
  8. else cout<<"no\n";
  9. }
  10. int main(){
  11. int a, b;
  12. double h;
  13. cin>>a>>b>>h;
  14. for (int i=a; i<=b; i+=h){
  15. l(i);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement