Advertisement
Varasku

Drugi program C++

Feb 27th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstdlib>
  4. using namespace std;
  5. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  6.  
  7. int main(int argc, char** argv) {
  8.  
  9.  
  10. cout << "Witaj świecie \n" << endl;
  11. int liczba;
  12. cout << "Podaj liczbe calkowita: ";
  13. cin >> liczba;
  14. float rzecz;
  15. cout << "Podaj liczbe rzeczwiste: ";
  16. cin >> rzecz;
  17. cout << "Liczba" << setw(10) << liczba << endl;
  18.  
  19.  
  20. printf ("Liczba całkowita %d Liczba rzeczywista %f ", liczba, rzecz);
  21.  
  22. srand(time(NULL));
  23. liczba = rand()%100;
  24.  
  25. system ("pause");
  26.  
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement