Friday, August 26, 2016

uri- 1143 - Squared and Cubic

#include<stdio.h>

int main()
{
    int i,n;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
        printf("%d %d %d\n",i,i*i,i*i*i);
    return 0;
}

No comments: