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
Which type of language is c?
Explain what is the most efficient way to store flag values?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are different types of variables in c?
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.
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the difference between int main and void main?
Not all reserved words are written in lowercase. TRUE or FALSE?
What are the basic data types associated with c?
What is difference between Structure and Unions?
What is advantage of pointer in c?
What is New modifiers?
What is huge pointer in c?
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?
How can I invoke another program or command and trap its output?