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

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("\n give a number");

scanf("%d",&a);
for(b=1;b<a;b++)
{
if((a)==(b*b))
printf("\n the no is ");
//else
//printf("\n the no is not");
//break;
}
getch();
}

Is This Answer Correct ?    31 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do the functions atoi(), itoa() and gcvt() do?

1245


What is difference between scanf and gets?

1368


plz let me know how to become a telecom protocol tester. thank you.

2239


Describe how arrays can be passed to a user defined function

1341


Does c have enums?

1173


When should a type cast be used?

1063


What is a macro?

1163


Can we compile a program without main() function?

1179


What are the application of c?

1159


Which is best linux os?

1080


What is the use of void pointer and null pointer in c language?

1165


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1065


how to capitalise first letter of each word in a given string?

1982


How can I call a function with an argument list built up at run time?

1285


What is data structure in c programming?

1128