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

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...