Code:
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char another,
int num;
printf("\nenter a number to get its square\n");
scanf("%d",&num);
printf("\nsquare of %d is %d",num,num*num);
printf("\ndo you want to enter another no y/n");
scanf("%c",&another);
}while(another=='y');
getch();
}
Comment