Senin, 20 Mei 2013

Modul 3.2

Modul 3.2

http://youtu.be/IqcVj9auocE

Listing Program

//Modul 3-2
//Operator unary
//Nama : WULAN KANDIANI KUSUMAH WARDANI NRP : 49013036

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

using namespace std;

int main()
{
    int e, g;
    double f,h;

    e = +8; //Operasi Unary untuk operator +
    f = -3.14; //Operator Unary untuk operator -
    std::cout << "Nilai e : "<< e <<  endl;
    std :: cout << "Nilai f : "<< f << endl;

    g = -e;
    h = -f;
    std :: cout << "Nilai g : "<< g << endl;
    std :: cout << "Nilai h : "<< h << endl;

    system ("pause");
    return 0;
}
 

Tidak ada komentar:

Posting Komentar