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