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
Can we declare a function inside a function in c?
explain how do you use macro?
What are pointers?
i have a written test for microland please give me test pattern
What are the main characteristics of c language describe the structure of ac program?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Write a program to check prime number in c programming?
What does s c mean on snapchat?
Explain the properties of union. What is the size of a union variable
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
Can two or more operators such as and be combined in a single line of program code?
Is there any possibility to create customized header file with c programming language?
how to introdu5ce my self in serco
What are the advantages of using new operator as compared to the function malloc ()?
What is #include stdio h?