Sleeping Beauty problem: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
(Added 11l)
m (→‎{{header|R}}: Syntax highlighting.)
Line 763:
=={{header|R}}==
There's nothing complicated here. Pretty much every language that resembles C is going to use virtually the same solution.
<lang Rrsplus>beautyProblem <- function(n)
{
wakeCount <- headCount <- 0
331

edits