/* WAP to print square value of the number entered by user using odd loop*/
//Header Files
#include<stdio.h>
#include<conio.h>
//Main Function
void main()
{
char another='y';
int num,sq;
// Function for clearing the screen
clrscr();
// Odd Loop
while(another=='y')
{
printf("Enter a number:");
scanf("%d",&num);
sq=num*num;
printf("Square of %d is %d",num,sq);
printf("\nWant to enter another number y/n:");
scanf("%c",&another);
another=getchar();
}
//Function for holding the screen on console
getch();
}