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