Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 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. void wypisz(float *T)
  13. {
  14. for(int i=99;i>=0;i--)
  15. {
  16. cout<<T[i]<<endl;
  17. }
  18.  
  19. }
  20.  
  21. main()
  22. {
  23. float tab[100];
  24. wpisz(&tab[0]);
  25. wypisz(&tab[0]);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement