Guest User

Untitled

a guest
Jul 29th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CONTANDO E METTENDO TUTTE LE CONSONANTI DEL NOME IN UN STRINGA DI NOME "C"
  2. .
  3. .
  4. POS:=1
  5. IF(CONTATORE>3)  \\*Solo quando le consonanti sono maggiori di 3*\\
  6.    CONS:=SUBSTR(C,POS,1)  \\*Prendo la prima consonanste e la metto nel codice fiscale*\\
  7.       COD_FISC:=COD_FISC||CONS
  8.       POS:=POS+2   \\*Passo direttamente alla terza consonante,pos+2 poichè la seconda si zompa!*\\
  9.       CONT:=1
  10.       WHILE(CONT=2)  \\*Metto le altre due consonanti*\\
  11.             LOOP
  12.             CONS:=SUBSTR(C,POS,1)
  13.             COD_FISC:=COD_FISC||CONS
  14.             POS:=POS+1
  15.             CONT:=CONT+1
  16.             END LOOP
  17. END IF
Add Comment
Please, Sign In to add comment