SOLUTION OF URI 1172 URI SOLUTIONS No comments // 1172 (Mahmud_Jamil) BRUR // Array Replacement I #include <stdio.h>int main(){ int N[10], temp,i,j; for(i=0; i<10; i++) scanf("%d",&N[i]); for(i=0; i<10; i++) { if(N[i]<=0) N[i]=1; } for(i=0; i<10; i++) printf("X[%d] = %d\n",i,N[i]); return 0;} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment