#include <stdio.h> int main() { int x=1,n; printf("Enter n value "); scanf("%d",&n); while(x<=n) { printf("%d\n",x); x++; } return 0; }
Enter n value 20 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 that takes two numbers and display the product of two numbers
Write a Java program to add two numbers without using any arithmetic operators
Write a Java program to convert seconds to hour, minute and seconds
Write a Java program to count the letters, spaces, numbers and other characters of an input string
Write a Java program to compare two numbers
Write a Python program that checks whether a specified value is contained within a group of values.
Write a Python program that accepts a filename from the user and prints the extension of the file.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
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 to get the volume of a sphere with radius six.
Java Quiz - 9
Java Quiz - 11
Java Quiz - 12
Java Quiz - 22
Java Quiz - 23