Computer for SEE and NEB

It is a complete SEE and NEB solution for computer science. It includes Computer Fundamentals, Database (SQL), Programming in C QBASIC, CSS, JavaScript, and PHP for beginners.

Breaking

Post Top Ad

Your Ad Spot

Friday, August 12, 2022

C program to calculate the square and cube of the first 10 natural numbers.

 C program to calculate the square and cube of the first 10 natural numbers.



#include <stdio.h>

#include<conio.h>

main()

{

int i;

printf("\n no \tsquare\tcube");

for (i=1;i<=10;i++)

printf("\n%d\t%d\t%d",i,i*i,i*i*i);

getch();

}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages