A tool that allows users to easily convert pseudocode to C programming language.
Enter Pseudocode Here:
Generated C Code:
# keywords
initialize and declare
# with value (autodetect datatype)
initialize x to 100
# no value
initialize x as (int/float/char)
initialize float x
# keywords
set
# Examples
set x to 10
set x to 10 plus 1
set x to y (plus/minus/multiply/divide) 10
# keywords
add, subtract, multiply, divide
# Examples
add 10 to x
subtract 10 to x
multiply x by 10
divide x by 2
# keywords
if, elif, and else
# conditional statemetns
greater than, less than, equal, not equal, or, and, greater than or equal, less than or equal
# Examples
if x is greater than y
# code here
elif x is less than y
# code here
else
# code here
endif
# keywords
for and loop
# Examples
for i equals 1 to 100
# code here
enfor
loop x from 1 to 100
# code here
endloop
# keywords
increment and decrement
# Examples
increment x
decrement x
# keywords
print, display, show, log
# Examples
print x (if x is not initialized, it will automatically print as text)
print 'hello world!'
print 'x: ' x
# keywords
while
# Examples
while x is less than 10
# code here
endwhile
# keywords
comment, //, #
# Examples
comment this is a comment
# this is a comment
// this is a comment