Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int nr;
  10. float w;
  11. cout<<"Podaj numer w dzienniku: ";
  12. cin>>nr;
  13. for(int i=(180+nr);i<=(200+nr);i++)
  14. {
  15. w=sqrt(i);
  16. cout.precision(4);
  17. cout<<"SQRT("<<i<<")="<<w<<endl;
  18. }
  19.  
  20. system("PAUSE");
  21. return EXIT_SUCCESS;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement