#include <stdio.h> int main() { int x=1,n; printf("Enter n value "); scanf("%d",&n); while(x<=n) { if(x%2==0) { printf("%d\n",x); } x++; } return 0; }
Enter n value 20 2 4 6 8 10 12 14 16 18 20
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
JDBC
JSP
Servlets
Java Quiz
C Material
C Programs
Java Interview Questions and Answers
SQL Interview Questions and Answers
100 Most Asked Java Interview Questions and Answers
Python Interview Questions
Write a Java program to add two numbers without using any arithmetic operators
Write a Java program to convert a decimal number to binary numbers
Write a Java program to compute the square root of an given integer
Write a Java program to count the letters, spaces, numbers and other characters of an input string
Write a Java program to swap two variables
Write a Python program to display the first and last colors from the following list.
Write a Python program to calculate the number of days between two dates.
Print out a set containing all the colors from a list which are not present in other list
Write a Python program to display the current date and time.
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Java Quiz - 4
Java Quiz - 14
Java Quiz - 9
Java Quiz - 11
Java Quiz - 12