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