Skip to content

LenouarMiloud/GrammarCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrammarCheck

a program which checks that the inserted word belongs a certain alphabet

Exercice: Ecrivez un programme qui vérifié que le mot inséré appartient à l’alphabet A= {a, b} et le langage L == {a^nb^p, p = n+1, n>=1}

Solution:

we try to check if the word begin by 'a' or not if not we stop the loop than we count the number of 'a' in the word it must equal (length / 2) -1 and the rest of caracters must be 'b'

About

a program which checks that the inserted word belongs a certain alphabet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages