Webhosting in Pakistan
Results 1 to 5 of 5

Thread: in programming loops kyo use hotay hein?

  1. #1
    AzadKashmir is offline Senior Member+
    Last Online
    22nd November 2009 @ 04:48 AM
    Join Date
    16 Sep 2007
    Posts
    191
    Threads
    34
    Credits
    746
    Thanked
    0

    Question in programming loops kyo use hotay hein?

    Webhosting in Pakistan
    SALAM MUJE jitney b loops hein unn k bray mein btao k loops kia hein aur kis maqsad k leye programing mein use hotay hein!


    tamam ki tareef urdu mein kijye pls!~

  2. #2
    Join Date
    04 Feb 2009
    Location
    islambad
    Age
    30
    Gender
    Male
    Posts
    663
    Threads
    76
    Credits
    71
    Thanked
    9

    Default

    bahi jan main ap ko tora sa batata hoan.loop use hota hain kisi be program ya function ko bar bar duhrana ka lya.like welcome ap 10 dafa show karwana chahta hain to ap just us ka loop banin and us main is ki setting kar dian.
    loop kitna kism ka hota hain?
    bahi main na to c++ loop use kia tha us main 3 trah ka hota hain
    1.while
    2.dowhile
    3.for
    1.while loop:-
    ya set of statment ya set hota ha ya tab tak use hota ha jab tak ap ki di hoi value true rahti ha.
    while(condition)
    statment;
    example
    while (x<=5)
    {
    printf("i love itdunya")
    }


    dowhile:-
    ya conditional loop statment main ha.ya while statment ki trah ha but is main set ya set of satatment ka ko run karna ka bad condition ko chek karta ha.
    syntax
    do{statment;
    }
    (while condition);
    example:-
    do{
    printf(itdunya\n",n);
    n++;
    }
    while (n<=10);
    }


    for:-
    for loop ko hum counter loop be kahta hain because
    kun ka is main set of statment ya set run hota rahta ha kuch waqt ka lya.

    syntax:-
    for(initialization;condition;increement/decrement)

    example:-

    for(a=6,b=10;a<10;a++)




    agar koi be chez na smaj aii to dubara puchain

  3. #3
    Rakesh's Avatar
    Rakesh is offline Senior Member+
    Last Online
    22nd September 2013 @ 12:18 AM
    Join Date
    27 Jan 2009
    Age
    33
    Posts
    270
    Threads
    33
    Credits
    726
    Thanked
    0

    Default

    ji bilkkl smsbuddy bhai jaan ne apko poori detail bata di hai.aur shayd programming men loop ka yahi kaam hota hai.
    Loading...
    Please wait...

  4. #4
    AzadKashmir is offline Senior Member+
    Last Online
    22nd November 2009 @ 04:48 AM
    Join Date
    16 Sep 2007
    Posts
    191
    Threads
    34
    Credits
    746
    Thanked
    0

    Default

    Thanks alot bro abi muje subhi clear hu gaya hai thanks alot for your kindly response!

  5. #5
    AzadKashmir is offline Senior Member+
    Last Online
    22nd November 2009 @ 04:48 AM
    Join Date
    16 Sep 2007
    Posts
    191
    Threads
    34
    Credits
    746
    Thanked
    0

    Default

    Webhosting in Pakistan
    Acha aik aur cheez! if statment aur switch mein kia faraq hai?

    koi khass faraq?

Similar Threads

  1. Replies: 5
    Last Post: 18th December 2010, 07:34 PM
  2. !~!***Muhabtoon Mein Kuch aisay b Haal Hotay Hein***!~!
    By Aasi_786 in forum Urdu Adab & Shayeri
    Replies: 14
    Last Post: 13th June 2010, 01:10 PM
  3. Qurb Kay Na Wafa Kay Hotay Hein
    By Hope in forum Urdu Adab & Shayeri
    Replies: 4
    Last Post: 5th June 2010, 07:18 AM
  4. portableFruity loops 9
    By iwantyou565 in forum Ask an Expert
    Replies: 1
    Last Post: 4th April 2010, 04:16 PM
  5. Moblie Phone jis me sab se ziyada sms store hotay hein
    By wahidawan in forum General Mobile Discussion
    Replies: 7
    Last Post: 5th June 2009, 05:08 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
  •