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

Which type of language is c?

639


Explain what is the most efficient way to store flag values?

688


which is conditional construct a) if statement b) switch statement c) while/for d) goto

729


What are different types of variables in c?

560


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

820






How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

579


What is the difference between int main and void main?

563


Not all reserved words are written in lowercase. TRUE or FALSE?

716


What are the basic data types associated with c?

804


What is difference between Structure and Unions?

631


What is advantage of pointer in c?

681


What is New modifiers?

655


What is huge pointer in c?

569


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1561


How can I invoke another program or command and trap its output?

606