#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
Write a Java program to convert a binary number to decimal number
Write a java Program to check the given number is Palindrome or not
Write a Java program to swap the first and last elements of an array and create a new array
Add all the digits of a given positive integer until the result has a single digit
Write a Java program to accept a float value of number and return a rounded float value
Write a Python Program to check armstrong number of n digits
Write a Python Program to Check Prime Number.
Write a Python program to calculate the number of days between two dates.
Write a Python Program to Find Armstrong Number in an Interval.
Write a python program to access news using python
Java Quiz - 18
Java Quiz - 9
Java Quiz - 4
Java Quiz - 23
Java Quiz - 21