c program to find square of 1 to n number using loop


#include <stdio.h>
#include <math.h>
int main()
{
    int i,n;
    printf("Enter the value of N: ");
    scanf("%d",&n);
    printf("No     Square   Cube    Square Root\n",n);
    for(i=1;i<=n;i++)
    {
        printf("%d \t %ld \t %ld \t %.2f\n",i,(i*i));
    }
    
    return 0;
}