SQUARE & CUBE OF INPUT NUMBER

#include<stdio.h>
#include<conio.h>
void main()
{
 int n,c,s;
 clrscr();
 printf("\n\tEnter Any Number : ");
 scanf("%d",&n); //input
 printf("\n\t--------------------");
 printf("\n\tInput Number = %d",n);
 s=n*n;
 c=n*n;
 printf("\n\tSqaure = %d",s);
 printf("\n\tCube = %d",c);
 printf("\n\t--------------------");
 getch();
}

Output


No comments:

Post a Comment

JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025

Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...