#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 find the index of the largest number in an array
Write a java Program to print N prime numbers and find sum and average
Write a Java program to convert seconds to hour, minute and seconds
Write a Java program to print the odd numbers from 1 to 20
Write a java Program to Print given number in words
Write a python program to Find Index Using Enumerate
Write a python program to adding a thousand separator
Write a python program to checking internet speed
Write a Python Program to Make a Simple Calculator with 4 basic mathematical operations.
Write a Python program to remove duplicates from a list
Java Quiz - 2
Java Quiz - 3
Java Quiz - 14
Java Quiz - 22
Java Quiz - 8