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


Please Help Members By Posting Answers For Below Questions

Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

785


What are integer variable, floating-point variable and character variable?

718


Tell me can the size of an array be declared at runtime?

680


Explain the difference between #include "..." And #include <...> In c?

708


Which is best linux os?

656






How do we print only part of a string in c?

682


Why enum is used in c?

622


What is c system32 taskhostw exe?

686


"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

753


what are # pragma staments?

1713


Explain what header files do I need in order to define the standard library functions I use?

734


What is void c?

668


How to compare array with pointer in c?

709


can we change the default calling convention in c if yes than how.........?

2149


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

771