# include <iostream.h>
# include <conio.h>
main()
{
int x=10,N1,N2;
clrscr();
cout <<"\nYour number = " <<x;
cout <<"\n\n";
cout <<"\n LOGICA AND";
cout <<"\n===========";
N1 = (x==10)&&(x==20);
cout <<"\n(x=10)&&(x=20) = " <<N1;
cout <<"\n\n";
cout <<"\n LOGICA OR";
cout <<"\n===========";
N2 = (x==10)||(x==20);
cout <<"\n(x=10)||(x=20) = " <<N2;
getch();
}
Search
Categories
- Part I : Perkenalan (4)
- Part II : Operator (3)
- Part III : Percabangan (materi) (2)
- Part III : Percabangan (program) (4)
- Part IV : Perulangan (meteri) (3)
- Part IV : Perulangan (program) (3)
- Part V : Array (materi) (1)
- Part V : Array (program) (2)
- Penerapan (6)
- Pointer (2)
- Searching (pencarian) (3)
- Typedef (1)