Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int funcia(double a[])
- {
- for (int j =0; j<5;j++)
- {
- if (a[j] < 0)
- cout <<a[j]<<endl;
- }
- }
- int main()
- {
- double a[5];
- for ( int i = 0; i< 5; i++)
- {
- cin>> a[i];
- }
- funcia(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement