1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #include <stdio.h> int main() { int i, sum=0; float n; for (i=1; i<=6; i++){ scanf ( "%f" ,&n); if (n>0){ sum+=1; } } printf ( "%d valores positivos\n" ,sum); return 0; } |
Thursday, January 28, 2016
URI 1060 - Positive Numbers
Labels:
URI Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)