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

how many errors in c explain deply

2036


Explain how can a program be made to print the line number where an error occurs?

1148


What is the sizeof () operator?

1017


How to establish connection with oracle database software from c language?

2142


Can the sizeof operator be used to tell the size of an array passed to a function?

1057


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1955


What is the newline escape sequence?

1020


what do you mean by enumeration constant?

957


What is the scope of static variable in c?

944


How can I find the modification date of a file?

1217


Which header file is used for clrscr?

999


Explain what is a stream?

1032


What is the use of a conditional inclusion statement in C?

1009


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1046


When is the “void” keyword used in a function?

1429