Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. void wpisz(float *T)
  4. {
  5. float x=0.5;
  6. for(int i=0;i<100;i++)
  7. {
  8. T[i]=x;
  9. x+=0.5;
  10.  
  11. }
  12. }
  13. void wypisz(float *T)
  14. {
  15. for(int i=0;i<100;i++)
  16. {
  17. cout<<T[i]<<endl;
  18. cout<<"\n";
  19. }
  20. }
  21. void odwroc(float *T)
  22. {
  23. for(int i=99;i>=0;i--)
  24. {
  25. cout<<T[i]<<endl;
  26. }
  27. }
  28. main()
  29. {
  30. float tab[100];
  31. wpisz(&tab[0]);
  32. wypisz(&tab[0]);
  33. odwroc(&tab[0]);
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement