Wednesday, June 15, 2016

SOLUTION OF URI 1060


//  1060  (Mahmud_Jamil) BRUR
//
  question of  1060 Positive Numbers





#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;
}



0 comments:

Post a Comment