Search Blog

Saturday, April 16, 2022

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.


                                                                         "Let's Begin"


A Programme To Add Two Matrix or Array.

We Have Determined The Maximum Length Of Array to Be  5 x 5(a[5][5]).
a[5][5]= Matrix A. b[5][5]=  Matrix B. sum[5][5]= Output Or Sum Matrix.
i and are Taken As Loop Elements.(To Run The Loop)
 as Numbers Of Rows & as Numbers Of Column which Are taken From User(Max length 5)
In Total 6 Loop Are Used Two For "A Matrix" , Two For "B Matrix" and Two For Sum And Printing of the Sum Matrix. 

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

Friday, April 15, 2022

How to Built and Print(or Display) an Array(or Matrix) User Friendly?

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


                                                                         "Let's Begin"


A Programme To Built an Array.(Max length 5 x 5)
USER FRIENDLY

Here We Are Making Two By Two Array.
We Have Determined The Maximum Length Of Array to Be  5 x 5(a[5][5]).
i and j are Taken As Loop Elements.(To Run The Loop)
 as Numbers Of Rows & c as Numbers Of Column which Are taken From User(Max length 5).
In Total 4 Loops are used 2 for Taking Inputs And 2 For giving Outputs. 

Understand From Outputs


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

Tuesday, April 12, 2022

How to Built and Print(or Display) an Array(or Matrix)?

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


                                                                         "Let's Begin"
            
Lets Learn To Create an Array. In Next Blog We Will Create a User Friendly Array Programme.
A Programme To Built an 2 by 2 Array(2-D Array).

An Array is Used To Store Multiple Values In A Single Variable. 
Array Is Mainly Of 3 Types =>
* 1D Array => Data_Type Variable_Name[No Of Rows];
* 2D Array => Data_Type Variable_Name [No Of  Rows][No. Of Column];
* Multi D Array => Data_Type Variable_Name[Size1][Size2][Size3]...[Size n];
Before Using any Variable In Programming You Need To Determine Its Data Type. 
Here We Are Making 2D Array.
Initialization Of An 2D Array int a[2][2];
In The Next Four Line The Value is Given to the Array.

To Print Array Looping Is An Important Part. 
i,j Is Used to Determine Rows And Column To Print an Array.
For Multi D Array The Number of Loop will Increase.

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

Saturday, April 9, 2022

How To Use Switch Case ?

             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 Grade Brief 
Using Switch Case

Syntax:-switch(Variable or Name)
{
                           case '1st Value': 
                            work to done
                  break;
                          case '1st Value':
                           work to done
                  break;
                         case '1st Value':
                            work to done
                   break; 
           default:
                            work to done
}
SWITCH CASE is A Beautiful Thing in c.It is Very Useful.In This The Varible Is Taken And Value of  it Checked By Different case.We Can add Infinite Cases.And A Default is Taken if the value isn't matches for Any Cases The Default work Is done

In this Programme "a" is Taken From user.Here "a" is Grade of The user(Recommended from A-F).
Their Are 6 Cases(A-F) With Different work. For Ex:- If User Entered A Then Case 1 i.e. Case 'A':
 Will run And EXCELENT Will Be printed. This Thing Will Happen for all The Cases.
Default :  If The Value Doesn't Matches For All The Cases Then Default will Run.
break; is Used to Stop The Running programme Hence it says "Switch Your Work Is Done HAha".

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