Results 1 to 10 of 10

Thread: Table for a number

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

    Default Table for a number

    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 @ 10:00 PM
    Join Date
    16 Jul 2013
    Location
    KpK Bajaur
    Age
    32
    Gender
    Male
    Posts
    67
    Threads
    2
    Credits
    0
    Thanked
    3

    Default

    thnxxxx

  3. #3
    Waqar-786 is offline Member
    Last Online
    9th October 2013 @ 08:10 PM
    Join Date
    24 Apr 2013
    Location
    Universe
    Age
    27
    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
    31
    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
    30
    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
    6th July 2021 @ 09:03 AM
    Join Date
    05 Jan 2013
    Location
    Bahawalpur
    Age
    27
    Gender
    Male
    Posts
    568
    Threads
    91
    Credits
    1,681
    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
    29
    Gender
    Male
    Posts
    4
    Threads
    0
    Credits
    920
    Thanked
    0

    Default

    yar ye printf scanf me to kr do plzzzz

  8. #8
    Alibigboss's Avatar
    Alibigboss is offline Senior Member+
    Last Online
    22nd July 2022 @ 06:46 PM
    Join Date
    17 Jan 2014
    Location
    Faisalabad
    Age
    34
    Gender
    Male
    Posts
    406
    Threads
    30
    Credits
    353
    Thanked
    40

    Default

    Nice post

  9. #9
    Join Date
    25 Feb 2011
    Location
    London, UK
    Gender
    Male
    Posts
    2,224
    Threads
    52
    Credits
    340
    Thanked
    86

    Default

    nice

  10. #10
    Join Date
    25 Feb 2011
    Location
    London, UK
    Gender
    Male
    Posts
    2,224
    Threads
    52
    Credits
    340
    Thanked
    86

    Default


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, 09:40 AM
  4. Mobile Secret codes...........
    By nasir rehman in forum General Mobile Discussion
    Replies: 16
    Last Post: 22nd August 2009, 01:32 PM
  5. Replies: 37
    Last Post: 19th June 2009, 04: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
  •