Thursday, June 23, 2016

SOLUTION OF URI 1143


//  1143   (Mahmud_Jamil) BRUR
// 
Squared and Cubic





#include<stdio.h>
int main()
{
    int n,i,j;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        printf("%d %d %d\n",i,i*i,i*i*i);
    }
    return 0;
}






0 comments:

Post a Comment