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
What is string in c language?
Explain a file operation in C with an example.
Explain the red-black trees?
What is n in c?
What is #define in c?
Why pointers are used in c?
What are the application of void data type in c?
int i=10; printf("%d %d %d", i, i=20, i);
How many types of arrays are there in c?
Can we access the array using a pointer in c language?
What is the use of getchar functions?
What's a good way to check for "close enough" floating-point equality?
Hi can anyone tell what is a start up code?
What is getch () for?
Explain c preprocessor?