#include<stdio.h>
#include<string.h>
main() {
int n;
char aan = 'y';
while (aan == 'y')
{
printf("entr ") ;
scanf ("%d", &n) ;
printf("sq of %d is %d", n, n*n );
scanf ("%c", &aan);
printf("\n want aan y/n""\n");
}
}
I want to make this using while loop. kindly tell me the problem with it. ITs not working as i want...