Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double n;
- int i, c = 0;
- for (i=1; i<=6; i++)
- {
- scanf("%lf", &n);
- }
- if (n > 0)
- c++;
- printf("%d valores positivos\n", c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement