GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prolog/Ismail_ZAHIR.pl at main · ismailza/Prolog

Expand file tree

/

Ismail_ZAHIR.pl

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (22 loc) · 628 Bytes
/

Ismail_ZAHIR.pl

Copy path

File metadata and controls

35 lines (22 loc) · 628 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Examen Logique 22/12/2022.
% Nom : Ismail ZAHIR
% CNE : M130034716
% Exercice 1:
fibonacci(0,1).
fibonacci(1,1).
fibonacci(N,F):-N1 is N-1,N2 is N-2,fibonacci(N1,F1),fibonacci(N2,F2),F is F1+F2.
% Exercice 2:
% Exercice 3:
term(1,sing,[e]).
term(2,sing,[e,s]).
term(3,sing,[e]).
term(1,plur,[o,n,s]).
term(2,plur,[e,z]).
term(3,plur,[e,n,t]).
supprimerER([_,_],[]).
supprimerER([T|R],[T|L]):-supprimerER(R,L).
inserer(X,[],[X]).
inserer(X,[T|R],[T|L]):-inserer(X,R,L).
concate(L,[],L).
concate(L1,[T|R],L):-inserer(T,L1,L2),concate(L2,R,L).
conjuger(V,S,N,C):-supprimerER(V,VSR),term(S,N,TER),concate(VSR,TER,C).
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.