#include <stdio.h> int main() { int x=1,n; printf("Enter n value "); scanf("%d",&n); do { printf("%d\n",x); x++; } while(x<=n); 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 ‘Hello World!’ on screen
Write a Java program to convert a decimal number to binary numbers
Write a Java program to compare two numbers
Write a Java program to count the letters, spaces, numbers and other characters of an input string
Write a Java program and compute the sum of the digits of an integer
Write a Python program that concatenates all elements in a list into a string and returns it.
Write a Python program to count the number 4 in a given list.
Write a Python program to calculate the number of days between two dates.
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 calculate the sum of three given numbers. If the values are equal, return three times their sum.
Java Quiz - 10
Java Quiz - 4
Java Quiz - 1
Java Quiz - 20
Java Quiz - 2