Skip to content

Commit

Permalink
tweak examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMayfield committed Jul 12, 2024
1 parent 075a46d commit 67197c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ print b
name: "GCD",
code: `
int gcd(int a, int b)
int temp
while (b ≠ 0)
temp ← b
int temp ← b
b ← a % b
a ← temp
end while
Expand Down Expand Up @@ -101,7 +100,7 @@ int countCharacter(String str, char targetChar)
end countCharacter
print "Enter a string: "
String userString ← input
String userString ← input()
int occurrences ← countCharacter(userString, 'a')
print "Number of occurrences of 'a' in " + userString + ": " + occurrences
`,
Expand Down

0 comments on commit 67197c0

Please sign in to comment.