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 is the purpose of void in c?

1071


What is structure of c program?

1171


Explain pointer. What are function pointers in C?

1087


What is scope and lifetime of a variable in c?

1079


while initialization of array why we use a[][2] why not a[2][]...?

2367


What are valid operations on pointers?

1205


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2318


Explain the use of keyword 'register' with respect to variables.

1060


regarding pointers concept

2049


what are the 10 different models of writing an addition program in C language?

1897


What is the use of pragma in embedded c?

1063


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1308


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1351


What is structure pointer in c?

1066


How can this be legal c?

1091