Webhosting in Pakistan
Results 1 to 10 of 10

Thread: Table for a number

  1. #1
    AlOnEbOy is offline Senior Member+
    Last Online
    5th October 2013 @ 10:03 PM
    Join Date
    09 Aug 2010
    Location
    Peshawar
    Gender
    Male
    Posts
    109
    Threads
    13
    Credits
    710
    Thanked
    2

    Default Table for a number

    Webhosting in Pakistan
    Code:
    #include<iostream>
    using namespace std;
    main()
    {
          int tab, res, i;
          char ch;
          do
          {
          cout<<"\n\n\tEnter any number : ";
          cin>>tab;
          cout<<"\n\tEnter how much do you want to create : ";
          cin>>i;
          cout<<endl;
          for(int a=1;a<=i;a++)
          {
               res=tab*a;
               cout<<"\t"<<a<<"\t"<<tab<<" * "<<a<<" = "<<res<<endl;
          }
          cout<<"\n\n\tNext (Y/N) : ";
          cin>>ch;
          }
          while(ch=='y'||ch=='Y');
          cout<<endl;
          system("pause");
    }

  2. #2
    Shoukat_Bj's Avatar
    Shoukat_Bj is offline Senior Member+
    Last Online
    21st September 2013 @ 11:00 PM
    Join Date
    16 Jul 2013
    Location
    KpK Bajaur
    Age
    28
    Gender
    Male
    Posts
    67
    Threads
    2
    Credits
    0
    Thanked
    3

    Default

    thnxxxx

  3. #3
    Waqar-786 is offline Member
    Last Online
    9th October 2013 @ 09:10 PM
    Join Date
    24 Apr 2013
    Location
    Universe
    Age
    23
    Gender
    Male
    Posts
    2,581
    Threads
    192
    Thanked
    259

    Default

    Nice Sharing

  4. #4
    RanaFaheemAg's Avatar
    RanaFaheemAg is offline Senior Member+
    Last Online
    30th December 2014 @ 11:53 PM
    Join Date
    10 Sep 2012
    Location
    Mianwali
    Age
    27
    Gender
    Male
    Posts
    38
    Threads
    12
    Credits
    0
    Thanked
    0

    Default

    اچھی پوسٹ ہےبھائی۔
    نیسٹڈ لوپ کے بغیر کام چلانے ک لئے یہ کوڈ دیکھیں۔ اس پروگرام کو ٹربو معن چلائیں۔
    #include<iostream.h>
    #include<conio.h>
    void main(){ // Made by Faheem Oct/26/2013
    clrscr();
    int s,e,result;
    loop:
    cout<<"\nEnter a number to find it's table : \t";
    cin>>s;
    cout<<"\nEnter the range of table in numbers : \t";
    cin>>e;
    for(int i=1;i<=e;i++){
    result=i*s;
    cout<<"\n\t"<<i<<":"<<"\t"<<s<<"*"<<i<<"\t"<<"="<< "\t"<<resul

    t<<endl; }
    char choice;
    cout<<"\t\nContinue ? (Y/N)"<<"\t";
    cin>>choice;
    if(choice=='y'||choice=='Y') goto loop;
    cout<<"\nPress any key to end this program . . .";
    getch();
    }

  5. #5
    Hashmatnaqvi's Avatar
    Hashmatnaqvi is offline Senior Member+
    Last Online
    18th February 2016 @ 01:27 AM
    Join Date
    16 Jan 2012
    Location
    Islamabad
    Age
    26
    Gender
    Male
    Posts
    639
    Threads
    55
    Credits
    0
    Thanked
    105

    Default

    nyc work
    Shadow xXx

  6. #6
    thisisrc's Avatar
    thisisrc is offline Senior Member+
    Last Online
    14th May 2019 @ 09:03 PM
    Join Date
    05 Jan 2013
    Location
    Bahawalpur
    Age
    23
    Gender
    Male
    Posts
    568
    Threads
    91
    Credits
    1,291
    Thanked
    17

    Default

    Quote AlOnEbOy said: View Post
    Code:
    #include<iostream>
    using namespace std;
    main()
    {
          int tab, res, i;
          char ch;
          do
          {
          cout<<"\n\n\tEnter any number : ";
          cin>>tab;
          cout<<"\n\tEnter how much do you want to create : ";
          cin>>i;
          cout<<endl;
          for(int a=1;a<=i;a++)
          {
               res=tab*a;
               cout<<"\t"<<a<<"\t"<<tab<<" * "<<a<<" = "<<res<<endl;
          }
          cout<<"\n\n\tNext (Y/N) : ";
          cin>>ch;
          }
          while(ch=='y'||ch=='Y');
          cout<<endl;
          system("pause");
    }
    #<stdio.h> is se kiya kro yar smajhny me asani hoti hai
    Country of Lions is Leading by Donkeys

  7. #7
    bhatti sahab is offline Junior Member
    Last Online
    8th December 2013 @ 04:06 PM
    Join Date
    03 Dec 2013
    Age
    25
    Gender
    Male
    Posts
    4
    Threads
    0
    Credits
    694
    Thanked
    0

    Default

    yar ye printf scanf me to kr do plzzzz

  8. #8
    Alibigboss's Avatar
    Alibigboss is offline Senior Member+
    Last Online
    14th December 2019 @ 06:41 PM
    Join Date
    17 Jan 2014
    Location
    Faisalabad
    Age
    29
    Gender
    Male
    Posts
    405
    Threads
    29
    Credits
    288
    Thanked
    39

    Default

    Nice post

  9. #9
    Raja.Aamir's Avatar
    Raja.Aamir is offline V.I.P
    Last Online
    12th February 2020 @ 08:17 PM
    Join Date
    25 Feb 2011
    Location
    London, UK
    Gender
    Male
    Posts
    2,211
    Threads
    52
    Credits
    198
    Thanked
    85

    Default

    nice

  10. #10
    Raja.Aamir's Avatar
    Raja.Aamir is offline V.I.P
    Last Online
    12th February 2020 @ 08:17 PM
    Join Date
    25 Feb 2011
    Location
    London, UK
    Gender
    Male
    Posts
    2,211
    Threads
    52
    Credits
    198
    Thanked
    85

Similar Threads

  1. Nokia Hack Codes!!
    By waqar555 in forum English IT Zone
    Replies: 48
    Last Post: 10th February 2013, 11:45 PM
  2. Dunian main kisi bi mobile number say kisi bi mobile number per free sms karain.
    By Rizwan chattha in forum General Mobile Discussion
    Replies: 74
    Last Post: 16th January 2012, 10:56 AM
  3. Ufone 1 sim say 2 number wow
    By Jani194 in forum General Mobile Discussion
    Replies: 62
    Last Post: 11th September 2011, 10:40 AM
  4. Mobile Secret codes...........
    By nasir rehman in forum General Mobile Discussion
    Replies: 16
    Last Post: 22nd August 2009, 02:32 PM
  5. Replies: 37
    Last Post: 19th June 2009, 05:50 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
  •