Senin, 20 Mei 2013

Modul 4.2

Modul 4.2

http://www.youtube.com/watch?v=rsagB3IY6us

Listing Program

// Modul 4.2.cpp : Defines the entry point for the console application.
//

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

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    std:: cout << "OPERATOR LOGIKA \n";

    std :: cout << "\n Tabel Kebenaran Operator AND \n";
    std :: cout <<" 1 && 1 = "<< (1 && 1) << endl;
    std :: cout <<" 1 && 0 = "<< (1 && 0) << endl;
    std :: cout <<" 0 && 1 = "<< (0 && 1) << endl;
    std :: cout <<" 0 && 0 = "<< (0 && 0) << endl;

    std :: cout << "\n Tabel Kebenaran operator OR \n";
    std :: cout <<" 1 || 1 = "<< (1 || 1) << endl;
    std :: cout <<" 1 || 0 = "<< (1 || 0) << endl;
    std :: cout <<" 0 || 1 = "<< (0 || 1) << endl;
    std :: cout <<" 0 || 0 = "<< (0 || 0) << endl;

    std::cout <<"\n Tabel Kebenaran Operator Not \n";
    cout << "!1 = " << !1<<endl;
    cout << "!0 = "<< !0<<endl;

    system("pause");
    return 0;
}

 

Tidak ada komentar:

Posting Komentar