Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are nested functions in c?

1021


What are the loops in c?

997


What is meant by high-order and low-order bytes?

1051


What does %d do in c?

965


What is pointers in c with example?

1078


Ow can I insert or delete a line (or record) in the middle of a file?

1005


Write a program to check palindrome number in c programming?

1020


Explain what is a static function?

1111


How can a string be converted to a number?

1023


What are the disadvantages of a shell structure?

1355


Write program to remove duplicate in an array?

1083


Difference between pass by reference and pass by value?

1160


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1213


Explain what is a 'locale'?

1082


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1070