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

Why can't I perform arithmetic on a void* pointer?

1092


What is the use of gets and puts?

1026


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1229


Which is better between malloc and calloc?

1198


Can you please compare array with pointer?

1081


Are comments included during the compilation stage and placed in the EXE file as well?

1080


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3314


Can you write a programmer for FACTORIAL using recursion?

1039


What are the 3 types of structures?

1028


What is "Hungarian Notation"?

1106


find the sum of two matrices and WAP for it.

1134


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1192


how do you execute a c program in unix.

1111


What is string concatenation in c?

1092


all c language question

2432