Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- float b;
- int n;cout<<"n=";cin>>n;
- for (int i=1;i<=n;i++)
- {if (2*n%2==0)
- b=3;
- else if (2*n+1/2==1)
- b=2*b;
- cout<<"b"<<n<<"="<<b<<endl;
- }
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment