Page 1 of 2 12 LastLast
Results 1 to 12 of 15

Thread: Calculate your age ...

  1. #1
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    31
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default Calculate your age ...

    السلام علیکم
    آج میں آپ کے سے ایک ایسا کوڈ شئیر کرنے جا رہا ہوں جس سے آپ
    اپنی عمر کو کیلکولیٹ کر سکیں گیں
    یہ کوڈ میں نے خود لکھا ہے



    #include <iostream>

    using namespace std;

    int main()
    {
    int n,month,years,days,hours;
    cout<< "enter you age with years: ";
    cin>>n;
    month=12*n;
    cout<<"you are months old:\t"<<month<<endl;

    days=n*360;
    cout<<"you are days old:\t"<<days<<endl;

    hours=8640*n;
    cout<<"you are hours old:\t"<<hours<<endl;

    return 0;
    }
    Last edited by SHonas; 25th November 2015 at 01:53 PM. Reason: URDU TYPE

  2. #2
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    31
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default

    programming mein apko kisi b qism ki help chahiye ho to bhai hazr hy......

  3. #3
    Mrs.Waqar's Avatar
    Mrs.Waqar is offline Advance Member+
    Last Online
    14th November 2019 @ 09:13 PM
    Join Date
    04 Aug 2015
    Location
    Gujranwala
    Age
    32
    Gender
    Female
    Posts
    5,143
    Threads
    278
    Credits
    48,576
    Thanked
    824

    Default

    shokrya......nice

    رواں اپنی تلاش میں ۔۔۔۔۔۔۔

  4. #4
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    31
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default

    wellcome;

  5. #5
    Sanaullah K's Avatar
    Sanaullah K is offline Senior Member+
    Last Online
    2nd April 2017 @ 09:49 AM
    Join Date
    26 Sep 2015
    Age
    27
    Gender
    Male
    Posts
    298
    Threads
    13
    Credits
    992
    Thanked
    20

    Default

    Quote Asif_Raz said: View Post
    السلام علیکم
    آج میں آپ کے سے ایک ایسا کوڈ شئیر کرنے جا رہا ہوں جس سے آپ
    اپنی عمر کو کیلکولیٹ کر سکیں گیں
    یہ کوڈ میں نے خود لکھا ہے



    #include <iostream>

    using namespace std;

    int main()
    {
    int n,month,years,days,hours;
    cout<< "enter you age with years: ";
    cin>>n;
    month=12*n;
    cout<<"you are months old:\t"<<month<<endl;

    days=n*360;
    cout<<"you are days old:\t"<<days<<endl;

    hours=8640*n;
    cout<<"you are hours old:\t"<<hours<<endl;

    return 0;
    }
    Nice Sharing


    - - - Updated - - -

    Quote Asif_Raz said: View Post
    السلام علیکم
    آج میں آپ کے سے ایک ایسا کوڈ شئیر کرنے جا رہا ہوں جس سے آپ
    اپنی عمر کو کیلکولیٹ کر سکیں گیں
    یہ کوڈ میں نے خود لکھا ہے



    #include <iostream>

    using namespace std;

    int main()
    {
    int n,month,years,days,hours;
    cout<< "enter you age with years: ";
    cin>>n;
    month=12*n;
    cout<<"you are months old:\t"<<month<<endl;

    days=n*360;
    cout<<"you are days old:\t"<<days<<endl;

    hours=8640*n;
    cout<<"you are hours old:\t"<<hours<<endl;

    return 0;
    }
    Nice Sharing

  6. #6
    Muaavia's Avatar
    Muaavia is offline Senior Member
    Last Online
    29th December 2018 @ 11:49 PM
    Join Date
    07 Jun 2014
    Gender
    Male
    Posts
    5,705
    Threads
    91
    Credits
    1,249
    Thanked
    434

    Default

    sukria share karne k liye
    [SIZE="5"][CENTER][COLOR="Black"][FONT="Jameel Noori Nastaleeq"]آخر موت ہے[/FONT][/COLOR][/CENTER][/SIZE]

  7. #7
    Asif_Raz's Avatar
    Asif_Raz is offline Senior Member+
    Last Online
    13th September 2018 @ 08:59 PM
    Join Date
    15 May 2014
    Age
    31
    Gender
    Male
    Posts
    435
    Threads
    27
    Credits
    606
    Thanked
    31

    Default

    My Pleasure

  8. #8
    appteach is offline Junior Member
    Last Online
    18th February 2016 @ 05:33 PM
    Join Date
    01 Feb 2016
    Age
    28
    Gender
    Male
    Posts
    13
    Threads
    4
    Credits
    0
    Thanked
    2

    Default


    Very nice

  9. #9
    dani.awan631's Avatar
    dani.awan631 is offline Senior Member+
    Last Online
    26th April 2016 @ 04:47 PM
    Join Date
    06 Feb 2016
    Age
    28
    Gender
    Male
    Posts
    157
    Threads
    14
    Credits
    20
    Thanked
    2

    Default


  10. #10
    IA KHAN is offline Member
    Last Online
    21st November 2016 @ 08:42 PM
    Join Date
    01 Sep 2015
    Gender
    Male
    Posts
    320
    Threads
    20
    Thanked
    17

    Default

    nice

  11. #11
    alonezeeni's Avatar
    alonezeeni is offline Junior Member
    Last Online
    9th February 2016 @ 06:54 PM
    Join Date
    07 Feb 2016
    Location
    Lahore
    Gender
    Female
    Posts
    2
    Threads
    1
    Credits
    0
    Thanked
    0

    Default

    nice

    - - - Updated - - -

    good

  12. #12
    Z.Programmer is offline Member
    Last Online
    11th October 2016 @ 10:38 AM
    Join Date
    06 Feb 2016
    Gender
    Male
    Posts
    158
    Threads
    13
    Thanked
    5

    Default

    Quote Asif_Raz said: View Post
    السلام علیکم
    آج میں آپ کے سے ایک ایسا کوڈ شئیر کرنے جا رہا ہوں جس سے آپ
    اپنی عمر کو کیلکولیٹ کر سکیں گیں
    یہ کوڈ میں نے خود لکھا ہے



    #include <iostream>

    using namespace std;

    int main()
    {
    int n,month,years,days,hours;
    cout<< "enter you age with years: ";
    cin>>n;
    month=12*n;
    cout<<"you are months old:\t"<<month<<endl;

    days=n*360;
    cout<<"you are days old:\t"<<days<<endl;

    hours=8640*n;
    cout<<"you are hours old:\t"<<hours<<endl;

    return 0;
    }
    I think there is little fault in this program.

Page 1 of 2 12 LastLast

Similar Threads

  1. gpa calculate????
    By afza ahmad in forum Ask an Expert
    Replies: 12
    Last Post: 4th April 2014, 11:57 AM
  2. How to calculate KBs &MBs
    By Shinystar5 in forum Mobile phones problems and Help Zone
    Replies: 3
    Last Post: 18th August 2011, 01:28 AM
  3. calculate factorial in C++
    By MailKing in forum General Discussion
    Replies: 9
    Last Post: 27th April 2011, 04:51 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
  •