Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Functions for Arithmetic Operations, String Manipulation, and Even Check
Description
This PR introduces the following features to enhance the functionality of the application:
Check if the Sum of Two Integers is Even
is_even(x: i32, y: i32)
function to determine if the sum of two integers is even.sum_even(x: i32, y: i32)
to calculate the sum of two integers.Floating-Point Arithmetic Operations
sum(x: f32, y: f32)
subtract(x: f32, y: f32)
divide(x: f32, y: f32)
multiply(x: f32, y: f32)
modulo(x: f32, y: f32)
String Concatenation
say_name(first_name: &str, surname: &str)
function to concatenate and display full names in a formatted message.Sample Outputs
Even Check
(5, 5)
→ Output:Is Even? false. The sum of the numbers, 5 and 5.
(22, 21)
→ Output:Is Even? false. The sum of the numbers, 22 and 21.
Arithmetic Operations
Example:
String Concatenation
("Eleazar", "Anonefdora")
→ Output:Hello, Eleazar Anonefdora