Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- void sd(float* mas, int n)
- {
- for(int i=n-1 ; i >= 0 ;i--){
- cout << mas[i] << " ";
- }
- }
- int main()
- {
- float mas[5];
- int n=5;
- for (int i = 0; i < 5; i++)
- cin >> mas[i];
- for(int i=0 ; i < 5 ; i++)
- cout << mas[i] << " ";
- cout << endl;
- sd(mas,n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement