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
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are integer variable, floating-point variable and character variable?
Tell me can the size of an array be declared at runtime?
Explain the difference between #include "..." And #include <...> In c?
Which is best linux os?
How do we print only part of a string in c?
Why enum is used in c?
What is c system32 taskhostw exe?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
what are # pragma staments?
Explain what header files do I need in order to define the standard library functions I use?
What is void c?
How to compare array with pointer in c?
can we change the default calling convention in c if yes than how.........?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above