#include <iostream>
using namespace std;
int main() {
double a;
for (int i = 0; i < 10; i++) {
cin >> a;
if (a < 0) {
cout << i;
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
double a;
for (int i = 0; i < 10; i++) {
cin >> a;
if (a < 0) {
cout << i;
}
}
return 0;
}