C++ Input NIM, nama, Jurusan

//lh3.googleusercontent.com/-K5UKWzgJhmU/AAAAAAAAAAI/AAAAAAAACdI/CN3nwiBZsGE/s512-c/photo.jpg
November 24, 2016




gambar disamping adalah program input nama, nim dan jurusan, silahkan mencoba.






#include <iostream>
#include <stdlib.h>

using namespace std;

int main()
{
    char b[10],c[10];
    int a;
    cout <<"Masukkan NIM = ";
    cin>>a;
    cout<<"Masukkan Nama = ";
    cin>>b;
    cout<<"Masukkan Jurusan = ";
    cin>>c;

    cout<<"================================"<<endl;

    cout<<"NIM = "<<a<<endl;
    cout<<"Nama = "<<b<<endl;
    cout<<"Jurusan = "<<c<<endl;

    return 0;
}


Related Post

SUBSCRIBE TO OUR NEWSLETTER

closed