write a program to display all the numbers between m and n input from the keyboard (where m <n,m>0,n>o),check and print the numbers that are perfect square. e.g 25,36,49---------- are said to be perfect square numbers.
Answers
Answered by
5
Answer:
Explanation:
#include <stdio.h>
#include <math.h>
void main()
{
int num,m,n,d;
clrscr();
printf("Enter the Range Between m,n ");
scanf("%d%d", &m,&n);
for (num = m; num <= n; num++)
{
for(d = 2; d < num; d++)
{
if (num % d == 0)
break;
}
if (d == num)
printf("%d ", num);
}
getch();
}
Similar questions