#include <stdio.h> int main() { int x,n; printf("Enter n value "); scanf("%d",&n); for(x=1;x<=n;x++) { if(x%2==0) { printf("%d\n",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 print the even numbers from 1 to 20
Write a Java program and compute the sum of the digits of an integer
Write a Java program to compute the sum of the first 100 prime numbers
Write a Java program to convert a binary number to decimal number
Write a Java program to print the ascii value of a given character
Write a Python program to get the volume of a sphere with radius six.
Write a Python program to find out what version of Python you are using.
Write a Python program to test whether a passed letter is a vowel or not.
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.
Write a Python program that checks whether a specified value is contained within a group of values.
Java Quiz - 8
Java Quiz - 22
Java Quiz - 17
Java Quiz - 7
Java Quiz - 14