#include <iostream>
using namespace std;
int main() {
cout << "A: ";
int a = 0;
cin >> a;
cout << "B: ";
int b = 0;
cin >> b;
if(a>b) {
cout << "error. a>b";
return 0;
}
int counter = 0;
for(int i = a; i<=b; ++i) {
if(i<0) {
++counter;
cout << "otr chisel: " << counter;
#include <iostream>
using namespace std;
int main() {
cout << "A: ";
int a = 0;
cin >> a;
cout << "B: ";
int b = 0;
cin >> b;
if(a>b) {
cout << "error. a>b";
return 0;
}
int counter = 0;
for(int i = a; i<=b; ++i) {
if(i<0) {
++counter;
}
}
cout << "otr chisel: " << counter;
}