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
How can my program discover the complete pathname to the executable from which it was invoked?
Can you pass an entire structure to functions?
What is a pointer variable in c language?
What are operators in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
How can I do graphics in c?
how to capitalise first letter of each word in a given string?
What is scanf () in c?
define string ?
What is the 'named constructor idiom'?
Why n++ execute faster than n+1 ?
The file stdio.h, what does it contain?
What are variables c?
What is the size of array float a(10)?