#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 display the system time
Write a Java program to swap two variables
Write a Java program to print the ascii value of a given character
Write a Java program to convert a string to an integer
Write a Python program that checks whether a specified value is contained within a group of values.
Write a python program to print Nlargest numbers
Write a Python program to remove duplicates from a list
How do you confirm if an object is iterable using code?
Write a Python Program for cube sum of first n natural numbers?
Java Quiz - 2
Java Quiz - 3
Java Quiz - 18
Java Quiz - 4
Java Quiz - 7