SlideShare a Scribd company logo
Farsi e-learning series
Farsi e-learning series

1    !"# $          %& '   (     ) *     &      +           "#,+&     "* +-".#/       0 )


                                                                                                        2 " 3 4                         + 2

                               56657 879:     56657 ;5<: =;><?:6 @A :B:<:;8CD E




                                                                         K     L#           2   )       ;           J   F G             " HI&


                                       J=OD     J= D        J=ZD         [     J=; D


                                              1 ;      *    K       & P "K O                        )       !     K      N                +M)

                                               2       "+       P )     '# T          2 "U 0 S                  R@C8:         "   HI& Q I&

                           int main()
                              {
                              char Doste[5];
                              return 0;
                              }



               Doste[0]        Doste[1]             Doste[2]                 Doste[3]                   Doste[4]

#    X *Y     N   W/ 1     K    L#             & )"             "M* V     F&        ! 2         & )" G              G              %&      "



             #include <iostream.h>
             int main()
                {
                int a[4];
                cout<<"enter content of 4 elements : "<<endl ;
                    for(int i=0; i<4; i++)
                         {
                         cout<<"enter content of a["<<i<<"]"<<endl;
                         cin>>a[i];
                         }
                return 0;
                }
Farsi e-learning series
                                                                                  K       L#            N     #K               & )" L N ] (               " '# T


            #include <iostream.h>
               int main()
               {
                  int a[4];
                  cout<<"enter content of 4 elements : "<<endl ;
                   for(int i=0; i<4; i++)
                        {
                        cout<<"enter content of a["<<i<<"]"<<endl;
                        cin>>a[i];
                        }
                   for(i=0; i<4; i++)
                        cout<<"content of a["<<i<<"]="<<a[i]<<endl;
               return 0;
               }


                  1 K              _       %&    ` L#    &       )       F* N     0       N                  %& 5            HI&    G    -"F& ^                        +M)
                                                                                                         a     & )"         2 ! +K ` L#     "  ) & "b                  F

                                                                             int b=4;
                                                                             int a[b];
                                                                                  1   Kc 0d                  %& & )" Q              2 'M & ` ?       ) & "#,+&    N (

                                                                                                                                                 X !        e * '#)"
                                                                                                               HI& 1 L#                 0 f       & )"     )& M

                                                                             int a[4];


                                                                 HI& 1       _`       2            %&    !       N         %&     h@;C8 i;8      !   P )    ! g+2



                                                                 const int b=4;
                                                                 int a[b];


                                       k K      F* (             G        )   F* L#)     ) &                           X fM.& '                  & )"    jF            K
                  1       2    "        "/ #      #& '       S    0 HI& 1   2 "m)    & no& " "                       pq   %& N                fl ! ' "+e 3 U

%& L#   &     )       S       F G          G     " HI& 1 #           %& & )"              f                           )         #) +             X N M& ' h
                                                                                                                                          L#       r) c"- s#/


                          int a[5]={24,33,49,55,63};


                                                                                              L#        r) q#) & )"                             ' L#) *     & '# T


            #include <iostream.h>
            int main()
               {
                  int a[5]={24,33,49,55,63};

                      for(int i=0; i<4; i++)
                           cout<<"content of a["<<i<<"]="<<a[i]<<endl;
                  return 0;
                  }
                                                                         Z
Farsi e-learning series

                                  1    ](            )       "     %& P    r&       +-"b                )   S       F G            G "   %&         #              & )"    Q I&




                       #include <iostream.h>
                        int main()
                              {
                              int a[5],sum=0;
                                   for(int i=0; i<5; i++)
                                     {
                                     cout<<"a["<<i<<"]=";
                                     cin>>a[i];
                                     sum=sum+a[i];
                                     }
                              cout<<"The sum is " <<sum;
                              return 0;
                              }


                                                                                                                                u *G N& b N 0                           ! g+2
    -           P )     "+& / G       L#    v "F*            ) ^     u *            +   M      " 1 " Q2 u *G              N *    &  ! P )" 2N T                   q#)
                                                                                                                                                                           1
                       x K      & i;8 P )                    " Q I& r           w       K      &" 3 4       u *G N& b N 0                          ! g+2          ) +2    + 2
                                                                                                                   xz  y  "                       ")   #        X *N      Y w


                       #include <iostream.h>
                       Void fun(int array[])
                         {
                         ...
                         }


                       int main()
                          {
                          int a[10];

                               ...

                               fun(a);

                               ...

                               return 0;
                               }



N & b '#&   N     F    F q#)          F     !    )       K       &   V +{ w1L#         ) ! g+2   K " N                    ) e*      2        -    "m)     &       Q2           "
                                                                                                                                                         x1L#    Q2 u *

 u * }2 * N             "##,* " ` K ! g+2 u * G N & b N 0   & )"    | -3 4                                           0 " ` "^    ! P ) WM0 "    # X *
    0 " %& '#           3 g* no& ' 1 #      2 " u *   & f      ! K      & )"                                       & ' #) * &w 1 K    !"# $ N    ~
                                                                  x K    no N                                       & HUg& F     • K & € "& 0 X " %&

 `3 U       1 #       v "F* h@;C8 i;8 P )       N ` K ) " ‚/ N M&              "##,* ƒ# N          #+2"g                 F *               # •                * 4 `'"
                                                                                                                1           •) N         "##,* ) b ƒ#            ! X " y&




                                                                                           t
Farsi e-learning series
! " Y   l     )    "   %& P   r& u * 1   Q2      F *   +-"b                    )    S     F G          G "   %&     #            & )" Q I&
                                              1 " L#   ](         4   & )"         N "   %& & F      ) "b            4   & )"       N  %&


              #include <iostream.h>
              int fun(int a[])
                {
                int sum=0;
                     for(int i=0; i<5; i++)
                          {
                          sum+=a[i];
                          }
                return sum;
                }

                  int main()
                        {
                        int a[5];
                             for(int i=0; i<5; i++)
                               {
                               cout<<"a["<<i<<"]=";
                               cin>>a[i];
                               }
                        cout<<"The sum is " <<fun(a);
                        return 0;
                        }

                                                                         ](        X "        0     r&    „ "+K     #            & )"     Q I&

              #include <iostream.h>
              int main()
                 {
                int a[5]={5,4,3,2,1}
                      ,b[3]={6,3,1};
                cout<<"Union part is :   " ;
                for(int i=0; i<5; i++)
                     {
                     for(int k=0; k<3; k++)
                          {
                           if (a[i]==b[k])
                                 cout<<a[i]<<"                        ";
                           }
                     }
                 return 0;
                 }
1   )Q2 u *        X " "+& / G 3 U       N     `u *    G N ) "b              " 1 K        G   ) *        )u *G    X "    Le& #          +M)………




                                                              S
Farsi e-learning series


"* +-".#/         q#) c 0          1      !"# $             "+.# 3 0H                ) *       &         +                       "* +-".#/ P ) `                  F       (
                                                                                                                                                                         1           r)

                                                                                                                       2 3 U                             '        -"F&             + 2


              879: 56657 ;5<: =:B:<:;8 Ci—: D= :B:<:;8 Ci—:                 D [ = :B:<:;8 Ci—: ;D E




                                                                                                        ‡ ) ˆ& ˆ-"F&             ‰ F            ‡        Š‡ "‡ NH0 `Q I& N            F


                                                                        i;8 J= D=SD E



                                                          L#     N .) x F           w ‹a2              " f#a+          &G 3 4                L#) *        &        F                 '

                                         J=OD=OD      J=OD= D    J=OD= D            J=OD=ZD            J=OD=tD
                                         J= D=OD      J= D= D    J= D= D            J= D=ZD            J= D=tD
                                                                                                              1 ##       &L              )    " Π            ` V f#a+         &

                                                                                                                                     L              F                  G       u

                                            J=5D=?D       5•N +2            F* Ž ?• "a2                      F*

                 1 K          & "a2           %&    N +2 Q          %& ` G#          #         Q M2 /             X     "^               N      •H "               N               X *

                                                                                                3 4 '#                                L              F        2               '# T
                               J=5D=?D=hD          5•c"0        F* Ž ?• N +2            F* Ž h•"a2   F*
                                                                                           1 K      f#a+                    & •FM& G 3 4                                     MK
                       xz # ^ L '&                  # e- "b w zzk                    fMK (       F e(                          #)q Πl #) *                                & Ql
                                                           1 ) "b ˆ& ‘ O                   "       e) +2          "a2 W‡ ) `   F G                                         )&   +M)

                                  " L#       f 03 U                 F       2                           N         #{     %&      "            F G                        ) & ' T
                                                                                                                                                                                 HI&
             i;8 J=ZD=tD • ’ ’         Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ           Ž “Ž †” ”E


                                                                                                                                                          2 fMK ' N
                                                                                S        Z         “
                                                                        Z       •        –
                                                                        t                 “        †

                                                                                                                             K   L#                  F        2               " HI&



     i;8 J= D=ZD=tD • ’ ’ ’    Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ     Ž “Ž †” ” Ž ’ ’“Ž Ž ZŽ t” Ž ’ Ž “Ž                         Ž   ” Ž ’•Ž ZŽ             SŽ “” ” ”E




                                                                        †
Farsi e-learning series
                                                                              1   2     F G          Q2        #K  "%*  F (           Q2
                                                                                                                 #K +K "           +M) G }%-
) ^ & 1    #) N F " $        #)    2    -      =D &H0    N      "       e * `u * G  "+& / N F            F        G v "F* "      #    U* K
# c"- Q I& N F 1   #) 111   N     eg        F* '##F*     #) & `         ) ˜•.& o "4      F                 e) +2   F*    W ) & )" M `      #)
                                                     1    & -           "^ "+& /    F*     F               G       N F     L  8:C8 ) & F *
                                                                                                                2 ! +K " 3 U u * v "F* HI&

               ™;8 8:C8xi;8 J= D= D[w
                ’
                [
                ”

                                                                                                                     2     2    g "F* "        &

               ™;8 8:C8xi;8 J= D=tD[w
                ’
                [
                ”


                                                                1         ](      X "         " W "* &    u X f4 l     #         & )"      š   &

                                                               Z          •
                                                               t         Zt
                                                              tS          •


                                                               t         “
                                                              SZ          •
                                                               t         t


               #include <iostream.h>
               int main()
                  {
                 int a[3][2]={{-3,-7},{4,34},{45,7}}
                       ,b[3][2]={{-4,8},{53,-17},{4,4}}
                       ,c[3][2];

                        for(int i=0; i<3; i++)
                             {
                             for(int k=0; k<2; k++)
                                   {
                                   c[i][k]=a[i][k]+b[i][k];
                                   cout<<c[i][k]<<"   ";
                                   }
                             cout<<endl;
                             }
                    return 0;
                    }

                                             1   #       )          )     <…; W "* &          "          {l       W "* & u X    & )"    #) *   &




                                                                    •
Farsi e-learning series
  Z      •
                                                                    2    " W "* &   Y"j 4 l       #          & )"    Q I&
  t      Zt       t       Z   Z      “

  tS     •    SZ                     •




         #include <iostream.h>
         int main()
            {
           int a[3][2]={{-3,-7},{3,34},{45,7}}
                 ,b[2][4]={{-4,23,13,8},{53,11,-1,-17}}
                 ,c[3][4];
           int s;
           for (int i=0; i<3; i++)
                     {
                     for(int j=0; j<4; j++)
                            {
                            s=0;
                            for(int k=0; k<2; k++)
                                   s+=a[i][k]*b[k][j];
                            c[i][j]=s;
                            }
                     }
           for(i=0; i<3; i++)
                 {
                 for(int j=0; j<4; j++)
                      cout<<c[i][j]<<"     " ;
                 cout<<endl;
                 }
            return 0;
            }

       1 #    )       K           <…; 3 U   "* &   e)       œ…; W "* &   <…œ W "* & G Y"›     "   & )" '   #) *     & ………




                                                        “
Farsi e-learning series

                                                                                                 3 " *

                                           1     2 o&     ;…; W "* & G N #&"*        #          & )"
     %& '   ](   X "      "#^   %& G            Wy2      +-"b   F G          G " %&   Q           & )"
                                                                               zk )       X   +-"b




                                !" #
                 +) ,)#                $% &       '( ) *          )




                          www.mrh.ir
                       www.majidonline.com




                           Z“S /                   -.
             0 1            )# ) 23            .4 567 $8& 9              :


                                       –

More Related Content

Similar to Part 6

تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلمتفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
Islamic Invitation
 
Gaspard tutorial
Gaspard tutorialGaspard tutorial
Gaspard tutorialpboulet
 
شرح خطوات التسجيل علي موقع Delicious
شرح خطوات التسجيل علي موقع Deliciousشرح خطوات التسجيل علي موقع Delicious
شرح خطوات التسجيل علي موقع DeliciousMostafa Salama
 
Manual writer 3.0
Manual writer 3.0Manual writer 3.0
Manual writer 3.0
Alejandro Puerto
 
Do an say ca phe thung quay
Do an say ca phe thung quayDo an say ca phe thung quay
Do an say ca phe thung quayThịnh Đức
 
SKV - Blackpool Viral
SKV - Blackpool ViralSKV - Blackpool Viral
SKV - Blackpool Viral
Marketing Lancashire
 
Anna Karenina (leon tolstoi)
Anna Karenina (leon tolstoi)Anna Karenina (leon tolstoi)
Anna Karenina (leon tolstoi)
Rita Dinis
 
Multimedia text-book-baobeid
Multimedia text-book-baobeidMultimedia text-book-baobeid
Multimedia text-book-baobeid
m baobeid
 
Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperDeepak Singh
 
Prepositions made easy-xpert
Prepositions made easy-xpertPrepositions made easy-xpert
Prepositions made easy-xperthudaalmabadi
 
Prem prajanma draft 0
Prem prajanma   draft 0Prem prajanma   draft 0
Prem prajanma draft 0
Tania Sikdar
 
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
Agricultura Sao Paulo
 
Vba y objetos excel
Vba y objetos excelVba y objetos excel
Vba y objetos excelEriFer Lm
 
15 vba y objetos excel
15  vba y objetos excel15  vba y objetos excel
15 vba y objetos excelswmar26
 
CIDOC CRM in Practice
CIDOC CRM in PracticeCIDOC CRM in Practice
CIDOC CRM in Practice
Bernhard Haslhofer
 

Similar to Part 6 (20)

تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلمتفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
تفسير العشر الأخير من القران الكريم ويليه احكام تهم المسلم
 
Gaspard tutorial
Gaspard tutorialGaspard tutorial
Gaspard tutorial
 
شرح خطوات التسجيل علي موقع Delicious
شرح خطوات التسجيل علي موقع Deliciousشرح خطوات التسجيل علي موقع Delicious
شرح خطوات التسجيل علي موقع Delicious
 
Manual writer 3.0
Manual writer 3.0Manual writer 3.0
Manual writer 3.0
 
Decalogo lyra
Decalogo lyraDecalogo lyra
Decalogo lyra
 
Do an say ca phe thung quay
Do an say ca phe thung quayDo an say ca phe thung quay
Do an say ca phe thung quay
 
SKV - Blackpool Viral
SKV - Blackpool ViralSKV - Blackpool Viral
SKV - Blackpool Viral
 
Anna Karenina (leon tolstoi)
Anna Karenina (leon tolstoi)Anna Karenina (leon tolstoi)
Anna Karenina (leon tolstoi)
 
Multimedia text-book-baobeid
Multimedia text-book-baobeidMultimedia text-book-baobeid
Multimedia text-book-baobeid
 
Hijaama
HijaamaHijaama
Hijaama
 
Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paper
 
Prepositions made easy-xpert
Prepositions made easy-xpertPrepositions made easy-xpert
Prepositions made easy-xpert
 
Prem prajanma draft 0
Prem prajanma   draft 0Prem prajanma   draft 0
Prem prajanma draft 0
 
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
Resultados sobre Policultivo de Tilápias e Camarões de Água Doce
 
Vba y objetos excel
Vba y objetos excelVba y objetos excel
Vba y objetos excel
 
15 vba y objetos excel
15  vba y objetos excel15  vba y objetos excel
15 vba y objetos excel
 
C program
C programC program
C program
 
CIDOC CRM in Practice
CIDOC CRM in PracticeCIDOC CRM in Practice
CIDOC CRM in Practice
 
Apre 4 t03
Apre 4 t03Apre 4 t03
Apre 4 t03
 
74 kg greco
74 kg greco74 kg greco
74 kg greco
 

Recently uploaded

Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

Part 6

  • 2. Farsi e-learning series 1 !"# $ %& ' ( ) * & + "#,+& "* +-".#/ 0 ) 2 " 3 4 + 2 56657 879: 56657 ;5<: =;><?:6 @A :B:<:;8CD E K L# 2 ) ; J F G " HI& J=OD J= D J=ZD [ J=; D 1 ; * K & P "K O ) ! K N +M) 2 "+ P ) '# T 2 "U 0 S R@C8: " HI& Q I& int main() { char Doste[5]; return 0; } Doste[0] Doste[1] Doste[2] Doste[3] Doste[4] # X *Y N W/ 1 K L# & )" "M* V F& ! 2 & )" G G %& " #include <iostream.h> int main() { int a[4]; cout<<"enter content of 4 elements : "<<endl ; for(int i=0; i<4; i++) { cout<<"enter content of a["<<i<<"]"<<endl; cin>>a[i]; } return 0; }
  • 3. Farsi e-learning series K L# N #K & )" L N ] ( " '# T #include <iostream.h> int main() { int a[4]; cout<<"enter content of 4 elements : "<<endl ; for(int i=0; i<4; i++) { cout<<"enter content of a["<<i<<"]"<<endl; cin>>a[i]; } for(i=0; i<4; i++) cout<<"content of a["<<i<<"]="<<a[i]<<endl; return 0; } 1 K _ %& ` L# & ) F* N 0 N %& 5 HI& G -"F& ^ +M) a & )" 2 ! +K ` L# " ) & "b F int b=4; int a[b]; 1 Kc 0d %& & )" Q 2 'M & ` ? ) & "#,+& N ( X ! e * '#)" HI& 1 L# 0 f & )" )& M int a[4]; HI& 1 _` 2 %& ! N %& h@;C8 i;8 ! P ) ! g+2 const int b=4; int a[b]; k K F* ( G ) F* L#) ) & X fM.& ' & )" jF K 1 2 " "/ # #& ' S 0 HI& 1 2 "m) & no& " " pq %& N fl ! ' "+e 3 U %& L# & ) S F G G " HI& 1 # %& & )" f ) #) + X N M& ' h L# r) c"- s#/ int a[5]={24,33,49,55,63}; L# r) q#) & )" ' L#) * & '# T #include <iostream.h> int main() { int a[5]={24,33,49,55,63}; for(int i=0; i<4; i++) cout<<"content of a["<<i<<"]="<<a[i]<<endl; return 0; } Z
  • 4. Farsi e-learning series 1 ]( ) " %& P r& +-"b ) S F G G " %& # & )" Q I& #include <iostream.h> int main() { int a[5],sum=0; for(int i=0; i<5; i++) { cout<<"a["<<i<<"]="; cin>>a[i]; sum=sum+a[i]; } cout<<"The sum is " <<sum; return 0; } u *G N& b N 0 ! g+2 - P ) "+& / G L# v "F* ) ^ u * + M " 1 " Q2 u *G N * & ! P )" 2N T q#) 1 x K & i;8 P ) " Q I& r w K &" 3 4 u *G N& b N 0 ! g+2 ) +2 + 2 xz y " ") # X *N Y w #include <iostream.h> Void fun(int array[]) { ... } int main() { int a[10]; ... fun(a); ... return 0; } N & b '#& N F F q#) F ! ) K & V +{ w1L# ) ! g+2 K " N ) e* 2 - "m) & Q2 " x1L# Q2 u * u * }2 * N "##,* " ` K ! g+2 u * G N & b N 0 & )" | -3 4 0 " ` "^ ! P ) WM0 " # X * 0 " %& '# 3 g* no& ' 1 # 2 " u * & f ! K & )" & ' #) * &w 1 K !"# $ N ~ x K no N & HUg& F • K & € "& 0 X " %& `3 U 1 # v "F* h@;C8 i;8 P ) N ` K ) " ‚/ N M& "##,* ƒ# N #+2"g F * # • * 4 `'" 1 •) N "##,* ) b ƒ# ! X " y& t
  • 5. Farsi e-learning series ! " Y l ) " %& P r& u * 1 Q2 F * +-"b ) S F G G " %& # & )" Q I& 1 " L# ]( 4 & )" N " %& & F ) "b 4 & )" N %& #include <iostream.h> int fun(int a[]) { int sum=0; for(int i=0; i<5; i++) { sum+=a[i]; } return sum; } int main() { int a[5]; for(int i=0; i<5; i++) { cout<<"a["<<i<<"]="; cin>>a[i]; } cout<<"The sum is " <<fun(a); return 0; } ]( X " 0 r& „ "+K # & )" Q I& #include <iostream.h> int main() { int a[5]={5,4,3,2,1} ,b[3]={6,3,1}; cout<<"Union part is : " ; for(int i=0; i<5; i++) { for(int k=0; k<3; k++) { if (a[i]==b[k]) cout<<a[i]<<" "; } } return 0; } 1 )Q2 u * X " "+& / G 3 U N `u * G N ) "b " 1 K G ) * )u *G X " Le& # +M)……… S
  • 6. Farsi e-learning series "* +-".#/ q#) c 0 1 !"# $ "+.# 3 0H ) * & + "* +-".#/ P ) ` F ( 1 r) 2 3 U ' -"F& + 2 879: 56657 ;5<: =:B:<:;8 Ci—: D= :B:<:;8 Ci—: D [ = :B:<:;8 Ci—: ;D E ‡ ) ˆ& ˆ-"F& ‰ F ‡ Š‡ "‡ NH0 `Q I& N F i;8 J= D=SD E L# N .) x F w ‹a2 " f#a+ &G 3 4 L#) * & F ' J=OD=OD J=OD= D J=OD= D J=OD=ZD J=OD=tD J= D=OD J= D= D J= D= D J= D=ZD J= D=tD 1 ## &L ) " Œ ` V f#a+ & L F G u J=5D=?D 5•N +2 F* Ž ?• "a2 F* 1 K & "a2 %& N +2 Q %& ` G# # Q M2 / X "^ N •H " N X * 3 4 '# L F 2 '# T J=5D=?D=hD 5•c"0 F* Ž ?• N +2 F* Ž h•"a2 F* 1 K f#a+ & •FM& G 3 4 MK xz # ^ L '& # e- "b w zzk fMK ( F e( #)q Œ l #) * & Ql 1 ) "b ˆ& ‘ O " e) +2 "a2 W‡ ) ` F G )& +M) " L# f 03 U F 2 N #{ %& " F G ) & ' T HI& i;8 J=ZD=tD • ’ ’ Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ Ž “Ž †” ”E 2 fMK ' N S Z “ Z • – t “ † K L# F 2 " HI& i;8 J= D=ZD=tD • ’ ’ ’ Ž SŽ ZŽ “” Ž ’ ZŽ •Ž –Ž ”Ž ’tŽ Ž “Ž †” ” Ž ’ ’“Ž Ž ZŽ t” Ž ’ Ž “Ž Ž ” Ž ’•Ž ZŽ SŽ “” ” ”E †
  • 7. Farsi e-learning series 1 2 F G Q2 #K "%* F ( Q2 #K +K " +M) G }%- ) ^ & 1 #) N F " $ #) 2 - =D &H0 N " e * `u * G "+& / N F F G v "F* " # U* K # c"- Q I& N F 1 #) 111 N eg F* '##F* #) & ` ) ˜•.& o "4 F e) +2 F* W ) & )" M ` #) 1 & - "^ "+& / F* F G N F L 8:C8 ) & F * 2 ! +K " 3 U u * v "F* HI& ™;8 8:C8xi;8 J= D= D[w ’ [ ” 2 2 g "F* " & ™;8 8:C8xi;8 J= D=tD[w ’ [ ” 1 ]( X " " W "* & u X f4 l # & )" š & Z • t Zt tS • t “ SZ • t t #include <iostream.h> int main() { int a[3][2]={{-3,-7},{4,34},{45,7}} ,b[3][2]={{-4,8},{53,-17},{4,4}} ,c[3][2]; for(int i=0; i<3; i++) { for(int k=0; k<2; k++) { c[i][k]=a[i][k]+b[i][k]; cout<<c[i][k]<<" "; } cout<<endl; } return 0; } 1 # ) ) <…; W "* & " {l W "* & u X & )" #) * & •
  • 8. Farsi e-learning series Z • 2 " W "* & Y"j 4 l # & )" Q I& t Zt t Z Z “ tS • SZ • #include <iostream.h> int main() { int a[3][2]={{-3,-7},{3,34},{45,7}} ,b[2][4]={{-4,23,13,8},{53,11,-1,-17}} ,c[3][4]; int s; for (int i=0; i<3; i++) { for(int j=0; j<4; j++) { s=0; for(int k=0; k<2; k++) s+=a[i][k]*b[k][j]; c[i][j]=s; } } for(i=0; i<3; i++) { for(int j=0; j<4; j++) cout<<c[i][j]<<" " ; cout<<endl; } return 0; } 1 # ) K <…; 3 U "* & e) œ…; W "* & <…œ W "* & G Y"› " & )" ' #) * & ……… “
  • 9. Farsi e-learning series 3 " * 1 2 o& ;…; W "* & G N #&"* # & )" %& ' ]( X " "#^ %& G Wy2 +-"b F G G " %& Q & )" zk ) X +-"b !" # +) ,)# $% & '( ) * ) www.mrh.ir www.majidonline.com Z“S / -. 0 1 )# ) 23 .4 567 $8& 9 : –