write a program to print the all 4digits numbers & whose
squares must me even numbers?
Answers were Sorted based on User's Feedback
Answer / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
int i,p;
printf("\nNumbers are ");
for(i=1000;i<=9999;i++)
{
p=(i*i);
if(p%2==0)
{
printf("%d\n",i);
}
}
getch();
}
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / 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 |
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
write a program that finds the factorial of a number using recursion?
What are the applications of c language?
what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }
Explain what are compound statements?
What are the different types of pointers used in c language?
Differentiate call by value and call by reference?
what is the use of pointers
void main() { int i=5; printf("%d",i++ + ++i); }
Explain low-order bytes.
Write a program to compute the following 1!+2!+...n!
A stack can be implemented only using array?if not what is used?