1060 - Positive Numbers - URI Online Judge || URI Online Judge 1060 Positive Numbers Solution
Problem Name: Positive Numbers
Problem Code: 1060
Judge: URI Online Judge
Problem link: 1060 - Positive Numbers
Solution on GitHub: 1060 - Positive Numbers
URI Online Judge 1060 - Positive Numbers Solution in C++/Cpp
#include <iostream>
using namespace std;
int main()
{
float n[6];
int count = 0;
for (int i = 0; i < 6; i++)
{
cin >> n[i];
}
for (int i = 0; i < 6; i++)
{
if (n[i] > 0)
{
count++;
}
}
cout << count << " valores positivos" << endl;
return 0;
}
