Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malfunction in Functions- Remainder Section #913

Open
Emilylawson opened this issue Aug 28, 2023 · 1 comment
Open

Malfunction in Functions- Remainder Section #913

Emilylawson opened this issue Aug 28, 2023 · 1 comment

Comments

@Emilylawson
Copy link

I have made my code and double checked in lots of places, it seems right.

I have

remainder <- function (num, divisor = 2) {
num %% divisor
submit()
}

And every time I try it says not quite or something in that vein.

I had a similar problem in the logic section with && and had to just quit and move on, even though I was only 30% done.

I really love this program, it's so helpful. Just a few kinks to work out and then it'd be perfect!

@Emilylawson Emilylawson changed the title Malfunction in Functions- Remainder Scetion Malfunction in Functions- Remainder Section Aug 28, 2023
@alieana008
Copy link

The script should not have the submit() line in it, that is only for use in the console. This will be a continual issue as every lesson works this same way. Otherwise, your function is correct.

remainder <- function(num, divisor=2)
{
num %% divisor
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants