Jumat, 02 September 2016

Operator Binary Pada C++


#include<iostream.h>
#include<conio.h>

main()
{
int x =10, y = 3;
int z, p;

z = x + y;
p = z - y;

cout<<" Perhitungan Binary \n";
cout<<x<<" + "<<y<< " = "<<z<<endl;
cout<<z<<" - "<<y<< " = "<<p<<endl;
getch();
}


Output :


0 komentar:

Posting Komentar