Webhosting in Pakistan
Results 1 to 11 of 11

Thread: Nested for loop C++

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

    Default Nested for loop C++

    Webhosting in Pakistan
    salam dosto keo expert c++ me
    mujahe is tarah ka output chayea koe bata sakta he

    1
    2 2
    3 3 3
    4 4 4 4
    5 5 5 5 5
    Last edited by Muzafar_B; 7th April 2014 at 05:57 PM.

  2. #2
    Fiaz Malik is offline Junior Member
    Last Online
    21st April 2014 @ 04:27 PM
    Join Date
    07 Apr 2014
    Age
    34
    Gender
    Male
    Posts
    3
    Threads
    0
    Credits
    0
    Thanked
    0

    Default c++

    mian chata hoon k mian c++ k cod ko jan sakoon ager koy janta hia to pleas mujha ache slah deen shukrya

  3. #3
    Ijaz Farooq's Avatar
    Ijaz Farooq is offline Senior Member+
    Last Online
    2nd May 2015 @ 11:28 PM
    Join Date
    17 Jul 2011
    Location
    J.W-Bhakkar
    Age
    26
    Gender
    Male
    Posts
    11,319
    Threads
    415
    Credits
    703
    Thanked
    1349

    Default

    وعلیکم السلام
    سو سمپل
    دو ویری ایبلز لے کر دو نیسٹڈ فار لوپ لگا دو
    یہ لیں کوڈ

    Code:
    int i,j;
    for(i=1;i<=5;i++)
    {
    for(j=1;j<=i;j++)
    cout<<i;
    cout<<endl;
    }
    Name:  Ijaz C++.jpg
Views: 368
Size:  31.6 KB

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

    Default

    is tarah ka output chayea mujahe
    Attached Images Attached Images  
    Good of luck

  5. #5
    aqigee is offline Senior Member+
    Last Online
    4th January 2020 @ 12:58 AM
    Join Date
    23 Sep 2012
    Location
    Bahawalpur
    Age
    26
    Gender
    Male
    Posts
    279
    Threads
    27
    Credits
    746
    Thanked
    12

    Default

    using go to xy

  6. #6
    Ijaz Farooq's Avatar
    Ijaz Farooq is offline Senior Member+
    Last Online
    2nd May 2015 @ 11:28 PM
    Join Date
    17 Jul 2011
    Location
    J.W-Bhakkar
    Age
    26
    Gender
    Male
    Posts
    11,319
    Threads
    415
    Credits
    703
    Thanked
    1349

    Default

    Quote Muzafar_B said: View Post
    is tarah ka output chayea mujahe
    not a big deal
    یہ لیں
    Code:
    int main(void)
    {
    	int i, j;
    	for (i = 1; i <= 5; i++)
    	{
    		for (j = 5; j>i; j--)
    			cout << " ";
    		for (j = 1; j <= i; j++)
    			cout << i << " ";
    		cout << endl;
    	}
    	return 0;
    }
    Name:  Ijaz C++2.PNG
Views: 261
Size:  19.0 KB

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

    Default

    me ye e cod use kar rah hon is tarah ni ahrah

  8. #8
    Ijaz Farooq's Avatar
    Ijaz Farooq is offline Senior Member+
    Last Online
    2nd May 2015 @ 11:28 PM
    Join Date
    17 Jul 2011
    Location
    J.W-Bhakkar
    Age
    26
    Gender
    Male
    Posts
    11,319
    Threads
    415
    Credits
    703
    Thanked
    1349

    Default

    Quote Muzafar_B said: View Post
    me ye e cod use kar rah hon is tarah ni ahrah
    Mery psd to bilkul theek hy
    screenshot me Daikh lo

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

    Default

    hogya

  10. #10
    Ijaz Farooq's Avatar
    Ijaz Farooq is offline Senior Member+
    Last Online
    2nd May 2015 @ 11:28 PM
    Join Date
    17 Jul 2011
    Location
    J.W-Bhakkar
    Age
    26
    Gender
    Male
    Posts
    11,319
    Threads
    415
    Credits
    703
    Thanked
    1349

    Default

    Quote Muzafar_B said: View Post
    hogya
    ہو ہی جانا تھا

  11. #11
    M-Qasim's Avatar
    M-Qasim is offline Advance Member+
    Last Online
    26th January 2020 @ 07:28 PM
    Join Date
    22 Mar 2009
    Gender
    Male
    Posts
    33,348
    Threads
    915
    Credits
    1,285
    Thanked
    3391

    Default

    Webhosting in Pakistan
    Quote Muzafar_B said: View Post
    hogya

Similar Threads

  1. MS Excel Main Result Tayar Karain Step By Step
    By Mubashir Aziz in forum General Discussion
    Replies: 60
    Last Post: 13th February 2016, 04:17 PM
  2. What is nested if statement?
    By jaminee in forum Ask an Expert
    Replies: 2
    Last Post: 7th November 2009, 09:32 PM

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
  •