#include <stdio.h> int main() { int x,n; printf("Enter n value "); scanf("%d",&n); for(x=1;x<=n;x++) { printf("%d\n",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 to print the sum of two numbers
Write a Java program and compute the sum of the digits of an integer
Write a Java program to display the system time
Write a Java program to compare two numbers
Write a Java program that accepts an integer (n) and computes the value of n+nn+nnn
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.
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 filename from the user and prints the extension of the file.
Write a Python program to display the current date and time.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Java Quiz - 12
Java Quiz - 15
Java Quiz - 14
Java Quiz - 18
Java Quiz - 16