Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int funcia(double a[])
  4. {
  5. for (int j =0; j<5;j++)
  6. {
  7. if (a[j] < 0)
  8. cout <<a[j]<<endl;
  9. }
  10. }
  11. int main()
  12. {
  13. double a[5];
  14. for ( int i = 0; i< 5; i++)
  15. {
  16. cin>> a[i];
  17. }
  18. funcia(a);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement