Answer Posted / mehak saini
include<stdio.h>
include<conio.h>
void main()
{
inti,num;
printf("enter the number")
scanf(%d",&num);
for(i=1;i=<num;i+1)
{
if(i%2==0)
{
printf("%d",i);
}
}
getch();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an lvalue?
Describe explain how arrays can be passed to a user defined function
Explain null pointer.
How do you define structure?
What functions are used for dynamic memory allocation in c language?
List the variables are used for writing doubly linked list program.
Explain how do you determine whether to use a stream function or a low-level function?
What is operator precedence?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Is c is a procedural language?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Under what circumstances does a name clash occur?
What is && in c programming?
How can my program discover the complete pathname to the executable from which it was invoked?
How many types of operators are there in c?