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 the purpose of 'register' keyword in c language?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Who developed c language and when?
What is n in c?
What do you mean by command line argument?
Explain what is the benefit of using const for declaring constants?
How can I generate floating-point random numbers?
Tell me is null always defined as 0(zero)?
Can a function argument have default value?
What are the advantages of c preprocessor?
What is the difference between the = symbol and == symbol?
What is a volatile keyword in c?
What does 1f stand for?
Is c easy to learn?
What is pointer and structure in c?