MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a C-program to print 1 to 10 values using while loop?

  1. Home
  2. C Language Programs

Write a C-program to print 1 to 10 values using while loop?

Write a C-program to print 1 to 10 values using while loop


#include <stdio.h>

int main() {
    int x=1;
    while(x<=10)
    {
        printf("%d\n",x);
        x++;
    }
    return 0;
}

Output:

1
2
3
4
5
6
7
8
9
10




More Programs


58 . Write a C-program to print 1 to 10 values using while loop
59 . Write a C-program to print 10 to 1 values using while loop
60 . Write a C-program to print 1 to n values using while loop
61 . Write a C-program to print even numbers using while loop
62 . Write a C-program to print even number or odd number based on the n value using while loop
63 . Write a C-program to print even number or odd number based on the n value using single while loop
64 . Write a C-program to count the number of divisible numbers in a given range(1-100) using while loop
65 . Write a C-program to print factorial number using while loop
66 . Write a C-program to print factorial of n numbers using while loop
67 . Write a C-program to print sum of natural numbers using while loop
68 . Write a C-program to print sum of even numbers using while loop



Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers

Write a java Program to print Armstrong number between 1 to 1000

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 that accepts an integer (n) and computes the value of n+nn+nnn

Python Practice Programs

Write a python program to Find the index of the largest number in the list

How do you confirm if an object is iterable using code?

Write a Python Program to Make a Simple Calculator with 4 basic mathematical operations.

Write a Python program to print fibonacci series

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.

Java Quiz

Java Quiz - 3

Java Quiz - 18

Java Quiz - 20

Java Quiz - 5

Java Quiz - 23

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs