Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream> //cin cout
- using namespace std;
- void main()
- {
- //тип име [брой елементи]
- int abc[10] = {1, 8, 4 ,10 ,-15, 0, -156, 8, 5, 0};
- int suma_otricatelni = 0;
- for (int i = 0; i < 10; i++)
- {
- if (abc[i] < 0)
- {
- cout << abc[i] << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment