write a program to print the all 4digits numbers & whose
squares must me even numbers?
Answer Posted / abdur rab
Any even number squard will yield an even value
#include <stdio.h>
int main ( int argc, char* argv [] )
{
int nloop = 0;
for ( nloop = 1000; nloop < 10000; nloop++ ) {
if ( ( nloop ) % 2 == 0 ) {
printf ("\n The Number is : %d",
nloop );
}
}
return ( 0 );
}
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
What is the use of pragma in embedded c?
How do you define a function?
write a program to display all prime numbers
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is the explanation for cyclic nature of data types in c?
Explain modulus operator.
#include
How can I find out how much free space is available on disk?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
How can I dynamically allocate arrays?
What is default value of global variable in c?
Why we write conio h in c?
What is the use of c language in real life?
write a program in c language to print your bio-data on the screen by using functions.
What is page thrashing?