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

Is c is a middle level language?

1122


How will you find a duplicate number in a array without negating the nos ?

2182


Why & is used in scanf in c?

1146


What is string function c?

1071


What is the use of clrscr?

1156


What does c mean in standard form?

1240


What Is The Difference Between Null And Void Pointer?

1329


Explain can static variables be declared in a header file?

1196


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1068


What is selection sort in c?

1169


What is #pragma statements?

1153


Write a code to generate divisors of an integer?

1103


which is an algorithm for sorting in a growing Lexicographic order

1861


What are the types of arrays in c?

1236


How many types of arrays are there in c?

1083