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
What is NULL pointer?
When should a far pointer be used?
How many main () function we can have in a project?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What type of function is main ()?
What is a class c rental property?
Which driver is a pure java driver
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is the purpose of sprintf() function?
What is structure and union in c?
What is the difference between char array and char pointer?
How do c compilers work?
Describe the header file and its usage in c programming?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.