Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main () {
- int a,b;
- cin>>a>>b;
- if(0<=a&&a<=b&&b<=10000){
- for(long long int i=a;i<=b;i++){
- cout<<pow(i,2)<<" ";
- }
- cout<<endl;
- for (long long int j=b;j>=a;j--){
- cout<<pow(j,3)<<" ";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement