Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include<iostream>
  2. #include<time.h>
  3. #include<cstdlib>
  4.  
  5. using namespace std;
  6. int *tablica = new int[10];
  7. tablica[1] = 1;
  8.  
  9. int main()
  10. {
  11. cout << :rand() << endl;
  12. int liczba = rand();
  13. cout << liczba <<:endl;
  14. liczba = std::rand();
  15. cout << liczba << endl;
  16. return 0;
  17. }
  18.  
  19. int main ()
  20. {
  21. int liczba = 5, liczba2 = 2;
  22. cout << "5/2 int << liczba/liczba2 << std::endl;
  23. cout << "5/2 float
  24. << static_cast<float>(liczba)/static_cast<float>(liczba2) << endl;
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement