Search Blog

Sunday, February 20, 2022

How to Print any Statement More than 1 time using DO WHILE Loop?

            Here We Will Learn To Program C. I'll try To give my Best To Make you understand.

                                                               "Let's Begin"

A Programme to Print "Myself Sahil Saini" 10 time
                using DO WHILE Loop
 
Now I Will only Make to guys understand only the New Function. To Understand other thing 
Please Check My other BLOGS.

  • int i=1;
    do
    {
         printf("Myself Sahil Saini");
         i++;
    }
    while(i<11);
                       Here int i=1; int stand for Integer . Value of i is initialized here.                    SYNTAX:-[do{}while(text expression);].i++ stats that Value of i will increase by 1.

OUTPUT

Download Link Of Above Programme:-

How to Use it.
Download File >Go To Turboc3(or turboc folder)>bin>Paste File>
open Turbo c Application>File>open(or F3)>Select File
 
NOTE:- Above File Can Be Opened With Other Compilers(Like code blocks, visual studio, etc.), Some Changes Might Require.

THANKS

No comments:

Post a Comment

How to Add Two Array(or Matrix) ?

    Here We Will Learn To Program C. I'll try To give my Best To Make you understand.                                                   ...