Skip to content

s1_absolute_value #6

@3-23

Description

@3-23

Describe the bug

The program compile but said that i have an error in the code . But my code is right i didn't find any error.

To Reproduce

Steps to reproduce the behavior:

if (i>=0){
return i ;
}
else{
return -i ;
}

The answer of the system was :

There are errors in your answer. Your mark is 0.0%. [Submission # 5f8d65a1fb18016d7de701b7]

Expected behavior

I expert the system to validate my code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions