Results 1 to 12 of 15

Thread: Calculate your age ...

Threaded View

Previous Post Previous Post   Next Post Next Post
  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
    30
    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

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
  •