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 for loop?

  1. Home
  2. C Language Programs

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

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


#include <stdio.h>

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

Output:

1
2
3
4
5
6
7
8
9
10




More Programs


38 . Write a C-program to print 1 to 10 values using for loop
39 . Write a C-program to print 10 to 1 values using for loop
40 . Write a C-program to print 1 to n values using for loop
41 . Write a C-program to print even numbers using for loop
42 . Write a C-program to print even number or odd number based on the n value using for loop
43 . Write a C-program to print even number or odd number based on the n value using single for loop
44 . Write a C-program to count the number of divisible numbers in a given range(1-100)
45 . Write a C-program to print count the number of divisible numbers in a given range(1-100) without using loop
46 . Write a C-program to print factorial number using for loop
47 . Write a C-program to print factorial of n numbers using for loop
48 . Write a C-program to print sum of natural numbers using for 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 swap the first and last elements of an array and create a new array

Write a Java program to print the ascii value of a given character

Write a java program to Find the index of the smallest number in an array

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

Write a Java program to swap two variables

Python Practice Programs

Write a Python Program to Display Fibonacci Sequence Using Recursion.

Write a Python program that checks whether a specified value is contained within a group of values.

Write a program to print swapping variables

Write a Python Program to Print the Fibonacci sequence.

Python Program to Replace all Occurrences of ‘a’ with $ in a String

Java Quiz

Java Quiz - 4

Java Quiz - 6

Java Quiz - 7

Java Quiz - 21

Java Quiz - 18

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