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 is string in c language?

1252


Explain a file operation in C with an example.

1178


Explain the red-black trees?

1203


What is n in c?

1114


What is #define in c?

1111


Why pointers are used in c?

1072


What are the application of void data type in c?

1237


int i=10; printf("%d %d %d", i, i=20, i);

1700


How many types of arrays are there in c?

1083


Can we access the array using a pointer in c language?

1097


What is the use of getchar functions?

1232


What's a good way to check for "close enough" floating-point equality?

1261


Hi can anyone tell what is a start up code?

2139


What is getch () for?

1317


Explain c preprocessor?

1162