Results 1 to 2 of 2

Thread: C++ two dimensional

  1. #1
    Muzafar_B is offline Advance Member
    Last Online
    3rd August 2019 @ 08:30 PM
    Join Date
    24 Jul 2013
    Location
    hyderabad
    Age
    32
    Gender
    Male
    Posts
    650
    Threads
    101
    Credits
    42
    Thanked
    15

    Default C++ two dimensional

    salam dosto All ITD expert se Gyzarish he Koe expet in C++ me ho to meri help Kar sakta he plz help me
    Tarbo C++ me Koe acht sa Two dimensional array ka code bana kr de

  2. #2
    khalliqie's Avatar
    khalliqie is offline Senior Member
    Last Online
    22nd May 2018 @ 02:18 PM
    Join Date
    02 Apr 2009
    Location
    Peshawar
    Age
    32
    Gender
    Male
    Posts
    2,493
    Threads
    141
    Credits
    1,230
    Thanked
    162

    Default

    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    int a[2][2]; // 2 dimensional Array -> a[2][2] represents array size u can put any value like a[5][3]
    for(int i=0;i<=1;i++) //loops used for input
    for(int j=0;j<=1;j++)
    cin>>a[i][j];
    for(int i=0;i<=1;i++) //loops used for output
    for(int j=0;j<=1;j++)
    cout<<a[i][j]<<endl;
    getch();
    }
    [FONT="Comic Sans MS"][CENTER][SIZE="5"][B][COLOR="MediumTurquoise"]"The nicest people tend to often be the ones who have been mistreated the most."[/COLOR][/B][/SIZE][/CENTER][/FONT]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •