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(); }