Webhosting in Pakistan
Results 1 to 2 of 2

Thread: C++ two dimensional

  1. #1
    Muzafar_B is offline Advance Member
    Last Online
    8th February 2019 @ 09:58 AM
    Join Date
    24 Jul 2013
    Location
    hyderabad
    Age
    27
    Gender
    Male
    Posts
    650
    Threads
    101
    Credits
    42
    Thanked
    15

    Default C++ two dimensional

    Webhosting in Pakistan
    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 Advance Member
    Last Online
    22nd May 2018 @ 02:18 PM
    Join Date
    02 Apr 2009
    Location
    Peshawar
    Age
    27
    Gender
    Male
    Posts
    2,493
    Threads
    141
    Credits
    773
    Thanked
    162

    Default

    Webhosting in Pakistan
    #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();
    }
    "The nicest people tend to often be the ones who have been mistreated the most."

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
  •