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
how many errors in c explain deply
Explain how can a program be made to print the line number where an error occurs?
What is the sizeof () operator?
How to establish connection with oracle database software from c language?
Can the sizeof operator be used to tell the size of an array passed to a function?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is the newline escape sequence?
what do you mean by enumeration constant?
What is the scope of static variable in c?
How can I find the modification date of a file?
Which header file is used for clrscr?
Explain what is a stream?
What is the use of a conditional inclusion statement in C?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
When is the “void” keyword used in a function?