write a program to print the all 4digits numbers & whose
squares must me even numbers?
Answer Posted / 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 |
Post New Answer View All Answers
What does 1f stand for?
What are the features of c language?
What is substring in c?
Explain pointer. What are function pointers in C?
What are the rules for the identifier?
Explain how can I open a file so that other programs can update it at the same time?
write a proram to reverse the string using switch case?
What is output redirection?
What does typeof return in c?
What are global variables?
Can you please explain the difference between malloc() and calloc() function?
Is null always defined as 0(zero)?
What are the advantages and disadvantages of c language?
How can I remove the leading spaces from a string?
Are pointers integers in c?