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
Explain 'bit masking'?
What are the storage classes in C?
What is 2c dna?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What are the types of functions in c?
program to convert a integer to string in c language'
What is #include conio h?
What is c programing language?
Define the scope of static variables.
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Why isn't it being handled properly?
How pointer is different from array?
Why c is a procedural language?
What are local static variables? How can you use them?