How To Write a C Program To Print First 10 Natural Numbers Using For Loop, Using While Loop and Using Do-While Loop in C Programming Language ?
Note: This C Program to print first 10 Natural Numbers without using Conditional Loop.Solution For C Program To Print First 10 Natural Numbers:
C Program To Print First 10 Natural Numbers Using For Loop:
#include#include void main() { int i=1; clrscr(); for(i=1;i<=10;i++) printf("%d",i); getch(); }
C Program To Print First 10 Natural Numbers Using While Loop:
#include#include void main() { int i=1; clrscr(); while(i<=10) { printf("%d",i); i++; } getch(); }
C Program To Print First 10 Natural Numbers Using Do-While Loop:
Tags: C Program To Write a C Program To Print First 10 Natural Numbers Using For Loop, Using While Loop and Using Do-While Loop, C Program To Print First 10 Natural Numbers, c program to print first 10 natural numbers using array, write a c program to print first n natural numbers, natural numbers program in c language, c program to print natural numbers from 1 to 10 in reverse order, program to print first 10 prime numbers in c, c program to print first n prime numbers using while loop, c program for sum of n natural numbers, c program for sum of n natural numbers using function.#include#include void main() { int i=1; clrscr(); do{ printf("%d",i); i++; }while(i<=10); getch(); }
Learn More :
C Program
- Using Bash to input stuff into c program
- Difficult C Programming Questions
- Write a c program to find largest among three numbers using binary minus operator three numbers using binary minus operator
- PRINTING ASCII VALUE USING C PROGRAM
- MULTIPLICATION OF TWO MATRICES USING C PROGRAM
- FIND OUT SUM OF DIAGONAL ELEMENTS OF A MATRIX USING
- Write A C Program To Find Out Transport Of A Matrix
- Factorial of 100 in C Program
- Multiplication of large numbers in c
- Division of Large Numbers in C Program
- BINARY SEARCH USING C PROGRAM
- BINARY SEARCH THROUGH RECURSION USING C PROGRAM
- FIND FACTORIAL OF A NUMBER USING RECURSION IN C PROGRAM
- FIND GCD OF A NUMBER USING RECURSION IN C PROGRAM
- FIND SUM OF DIGITS OF A NUMBER USING RECURSION USING C PROGRAM
- FIND POWER OF A NUMBER USING RECURSION USING C PROGRAM
- REVERSE A NUMBER USING RECURSION IN C PROGRAM
- SWAP TWO VARIABLES WITHOUT USING THIRD USING C PROGRAM VARIABLE
- Write A C Program For Swapping Of Two Arrays
- SWAPPING OF STRINGS USING C PROGRAM
- CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM
- CONVERSION FROM DECIMAL TO OCTAL USING C PROGRAM
- CONVERSION OF DECIMAL TO BINARY USING C PROGRAM
- CONVERSION OF FAHRENHEIT TO CENTIGRADE USING C PROGRAM
- C or C++ Program To Find Bonus Amount