• 5


    #include
    #include
    #include

    struct Mahasiswa
    {
    char Nim [9];
    char Nama [25];
    char Alamat [40];
    short Umur;
    }

    main ()
    {
    Mahasiswa Mhs;
    cout<<"Nim : ";
    cin.getline(Mhs.Nim,9);
    cout<<"Nama : ";
    cin.getline(Mhs.Nama,25);
    cout<<"Alamat : ";
    cin.getline(Mhs.Alamat,40);
    cout<<"Umur : ";
    cin>> Mhs.Umur;

    cout<<"\n\n\nNim : "<< Mhs.Nim;
    cout<<"\nNama : "<< Mhs.Nama;
    cout<<"\nAlamat : "<< Mhs.Alamat;
    cout<<"\nUmur : "<< Mhs.Umur;
    getch ();
    }
  • 0 komentar:

    Posting Komentar

    Pengikut

    Search This Blog

    BUILDING SINCE 2012

    BUILDING SINCE 2012

    "OMMI" consists of young and dynamic professionals thriving to provide the widest spectrum of corporate service solutions in a single window. We are a professionally equipped company started with the mission to provide a comprehensive range of Management Consultancy Services to our clients.

    Subscribe Us

    ADDRESS

    Office: Jl. Pangeran Hidayat No. 97 B. Pekanbaru

    EMAIL

    Office: permatabundapku@gmail.com
    bang_fauzil@yahoo.com

    TELEPHONE

    Office: +0761 849 102
    0852 7259 4146

    MOBILE

    0822 8385 1648