Skip to content

Commit

Permalink
1. Add timesTwo function
Browse files Browse the repository at this point in the history
2. Add divideByTwo function
  • Loading branch information
sgilmore10 committed Apr 3, 2024
0 parents commit 4cc321c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions divideByTwo.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function result = divideByTwo(value)
result = value ./ 2;
end
3 changes: 3 additions & 0 deletions timesTwo.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function result = timesTwo(value)
result = value .* 2;
end

0 comments on commit 4cc321c

Please sign in to comment.