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 to print the all 4digits numbers & whose
squares must me even numbers?

Answer Posted / ruchi

#include<stdio.h>
#include<conio.h>
int main()
{
int i,p;
printf("\nNumbers are ");
for(i=1000;i<=9999;i++)
{
p=(i*i);
if(p%2==0)
{
printf("%d\n",i);
}
}
getch();
}

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does 1f stand for?

1179


What are the features of c language?

1078


What is substring in c?

1214


Explain pointer. What are function pointers in C?

1091


What are the rules for the identifier?

1178


Explain how can I open a file so that other programs can update it at the same time?

1128


write a proram to reverse the string using switch case?

2961


What is output redirection?

1234


What does typeof return in c?

1106


What are global variables?

1201


Can you please explain the difference between malloc() and calloc() function?

1131


Is null always defined as 0(zero)?

1124


What are the advantages and disadvantages of c language?

1022


How can I remove the leading spaces from a string?

1179


Are pointers integers in c?

1086