SOLUTION OF URI 1144 URI SOLUTIONS No comments // 1144 (Mahmud_Jamil) BRUR // Logical Sequence #include <stdio.h>int main(){ int a,b,c,d,e,f; scanf("%d", &a); for(b=1; b<=a; b++) { c=b*b; d=b*b*b; printf("%d %d %d\n",b,c,d); e=c+1; f=d+1; printf("%d %d %d\n",b,e,f); } return 0;} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment