• 6


    #include
    #include
    #include

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


    Mahasiswa Mhs [5];
    int i;
    for (i=0; i<5 i="" p="">{
    cout<<"Nim : ";
    cin>>Mhs[i].Nim;
    cout<<"Nama : ";
    cin>>Mhs[i].Nama;
    cout<<"Alamat : ";
    cin>>Mhs[i].Alamat;
    cout<<"Umur : ";
    cin>> Mhs[i].Umur;
    }
    for (i=0;i<5 i="" p="">{
    cout<<"\n\n\nNim : "<< Mhs[i].Nim;
    cout<<"\nNama : "<< Mhs[i].Nama;
    cout<<"\nAlamat : "<< Mhs[i].Alamat;
    cout<<"\nUmur : "<< Mhs[i].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