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 10 to 1 values using while loop?

  1. Home
  2. C Language Programs

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

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


#include <stdio.h>

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

Output:

10
9
8
7
6
5
4
3
2
1




More Programs


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
69 . Write a C-program to print sum of odd 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 check the given number is Palindrome or not

Write a Java program to find the area of a triangle.

Write a Java program to convert a decimal number to binary numbers

Write a Java program to print ‘Hello World!’ on screen

Write a Program to remove duplicate element in an array

Python Practice Programs

Write a Python Program to Check Leap Year.

Write a python program to access news using python

Write a Python Program to Check Prime Number.

Write a Python Program to calculate the natural logarithm of any number.

Write a program to print swapping variables

Java Quiz

Java Quiz - 21

Java Quiz - 20

Java Quiz - 14

Java Quiz - 16

Java Quiz - 19

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