Skip to content

Muham23d/Lab-3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Lab-3

Requirements:

Create a dart file that contains the following functions :

The first function:

Write a function deleteLastCharacter that receives String. The function deletes the last character of the text and returns the text value after deletion.

The second function:

Write a function evenOrOdd that receives a number int. The function returns the value "odd" if the number is odd, and the value "even" if the number is even.

The third function:

Write a function stringCheck that takes a list of type String. The function checks the similar values in the list, returning true if the values are equal and false if otherwise.
E.g.
Input ["Dart", "Dart", "Dart"] Return true
Input ["Dart", "Java", "Dart"] Return false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published