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 / manvi

main()
{
int i,b,j;
printf("enter the no");
scanf("%d",&i);
for(j=1;j<i;j++)
{
b=j*j;
if(i==b)
{
printf("this no is squre of: %d",j);
return;
}
}
printf("not a square no");
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is const keyword in c?

1160


What is an example of structure?

1039


What does 1f stand for?

1156


What is your stream meaning?

1228


Explain what is the benefit of using const for declaring constants?

1030


What is the role of && operator in a program code?

1066


Explain what will the preprocessor do for a program?

1063


what do the 'c' and 'v' in argc and argv stand for?

1164


What is array of structure in c?

1171


Here is a good puzzle: how do you write a program which produces its own source code as output?

1094


What is the condition that is applied with ?: Operator?

1128


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2179


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3361


Why can arithmetic operations not be performed on void pointers?

1039


Is null always defined as 0(zero)?

1101