print series N N-1 N-2 N-3 ..............10 9 8 7 6 5 4 3 2 1 IN PROLOG
f(X):-
write('Enter a value'),
nl,
read(X),
g(X).
g(X):-
X > 0,
write(X),
nl,
X1 is (X - 1),
g(X1).
print series N N-1 N-2 N-3 ..............10 9 8 7 6 5 4 3 2 1 IN PROLOG
f(X):-
write('Enter a value'),
nl,
read(X),
g(X).
g(X):-
X > 0,
write(X),
nl,
X1 is (X - 1),
g(X1).
SMALLEST OF THREE NUMBERS IN PROLOG:
smallest_three(A, B, C):-
(A =< B),(A =< C),
write(A);
(B =< A),(B =< C),
write(B);
(C =< A),(C =< B),
write(C).
LARGEST OF THREE NUMBERS IN PROLOG:
largest_three(A, B, C):-
(A >= B),(A >= C),
write(A);
(B >= A),(B >= C),
write(B);
(C >= A),(C >= B),
write(C).
POSITIVE NEGATIVE ZERO CHECKING IN PROLOG:
positive_negative_zero(A):-
A > 0,
write('Positive');
A =:= 0,
write('Zero');
A < 0,
write('Negative').
ODD EVEN CHECKING IN PROLOG:
odd_even_checking(A):-
X is A mod 2,
X =:= 0,
write('Even');
write('Odd').
compare data and information.
input devices, output device, storage devices .
short note-LAN,MAN,WAN, BCD ,IP address,ASCII
different network topology
Compare 1’s complement technique and 2’s complement technique.
uses, advantages ,disadvantages of ecommerce.
impact of Information Technology on business?
Design circuit ,truth table
binary arithmetic-add,sub,mul,div
arithmetic in 1’s complement technique and 2’s complement technique.