Search Blog

Wednesday, March 30, 2022

How To Swap Values of Two Numbers?

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

                                                               "Let's Begin"

A Program To Swap Value Of Two Numbers.

In Swapping Of Two Numbers the main Work is of Just 3 Lines.
c=a;
a=b;
b=c;
If you are A Mathematics Student Its easy to Understand.
If NOT then I'll Make U Understand. 2 Value is taken from User a&b.We Need To Swap Their Value.1st c=a; value of Given to c. Then Value of b Given to a. Then Value Of c Given To b.
Here How The Value is Swapped .


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

Thursday, March 10, 2022

How to use and What is The use of Continue in Loop Statements(for,while,do while)?

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

                                                               "Let's Begin"

A Programme To Use Continue in Loops. 

Now I Will only Make to guys understand only the New Function. To Understand other thing 
Please Check My other BLOGS.

What Continue do in a Loop? What is The work of Continue?
Continue can Be used in Any Loop(for,while,do while).It is Used To Stop The Loop for That particular Value and Run it for Next Value.
Here, j is taken From User. In if i==j(i is said to be equal to j) means at i==j the if goes true and continue  will work.

Lets Understand With Output.

 Here, j=5 At i=5 continue will not let the loop run forward but ask him to go to starting
Means at j=5=i printf("%d\n",i); will not run due to continue.We cant se 5 in output.

Similarly at j=2

At j=10

 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

Wednesday, March 9, 2022

How To Get Multiplication Table of Any Number?

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

                                                               "Let's Begin"

A Programme to Get Multiplication Table of 
Any Numbers.

Now I Will only Make to guys understand only the New Function. To Understand other thing 
Please Check My other BLOGS.

Here we have taken Input 'a'using 'scanf("%d",&a);'.
Now loop is run 10 Times from i=1 to i<=10(10 is included).
Inside Then loop print Function and An Operation is used'printf("%dx%d=%d",a,b,a*b);'.
!st %d will print a,2nd %d willl print b and 3rd %d will print a*b.

                                                                                     
                                     

OUTPUTS
   
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


   

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.                                                   ...