Write a program which take a integer from user and tell
whether the given variable is squar of some number or not.
eg: is this number is 1,4,9,16... or not

Answer Posted / rajesh kumar

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("\n give an integer value");
scanf("%d",&a);
if((a/(a/2))==(a/2))
printf("\n the variable is square of some no");
else
printf("\n the no is not square of some no");
getch();
}

Is This Answer Correct ?    2 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of gets and puts?

604


How do c compilers work?

611


Is return a keyword in c?

598


What is exit() function?

561


how to find anagram without using string functions using only loops in c programming

2718






Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1660


What is the correct code to have following output in c using nested for loop?

613


Can true be a variable name in c?

559


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1744


Difference between MAC vs. IP Addressing

641


What is putchar() function?

637


What are keywords c?

603


What is extern variable in c with example?

538


In C, What is the #line used for?

1062


What does 3 periods mean in texting?

600