SHARE
TWEET

Untitled

a guest Nov 12th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,count=0;
  5.     float n;
  6.     for(i=1;i<=6;i++)
  7.     {
  8.         scanf("%f",&n);
  9.         if(n>0)
  10.         {
  11.             count++;
  12.         }
  13.     }
  14.     printf("%d valores positivos\n",count);
  15.     return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top