SOLUTION OF URI 1060 URI SOLUTIONS No comments // 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; } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment