Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain 'bit masking'?

1138


What are the storage classes in C?

1204


What is 2c dna?

1131


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1174


What are the types of functions in c?

1039


program to convert a integer to string in c language'

2509


What is #include conio h?

1056


What is c programing language?

1137


Define the scope of static variables.

1199


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.

2858


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.?

1132


Why isn't it being handled properly?

1122


How pointer is different from array?

1148


Why c is a procedural language?

1130


What are local static variables? How can you use them?

1207