Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Pseudocode help VERY BASIC

Name: Anonymous 2010-09-23 16:17

So I want to condense some tedious questions into something a little simpler. Asking for the values of three-four variables in one line, instead of four seperate prompts.

This right now is what I have:

Display "Value for A"
Read <a>

etc for each variable. There's gotta be a easier way.

Name: Anonymous 2010-09-23 16:25

It's pseudo code. As long as someone can understand it correctly, it is right.

Name: Anonymous 2010-09-23 16:25

>>1
Hmm, it's a difficult problem, but how about:

Display "Values for A, B, and C:"
Read <a>
Read <b>
Read <c>

Name: Anonymous 2010-09-23 16:34

Less of this.

Name: Anonymous 2010-09-23 16:34

ENTERPRISE-GRADE RUBY
A=Array.new(4){|i|s="What is _?";s[8]=(i+65).chr;[s,""]}.each{|e|puts e[0];e[1]=gets}

Name: Anonymous 2010-09-23 16:45

lol, scanf.

Name: Anonymous 2010-09-23 16:53

>>6
scanf my anus

Name: Anonymous 2010-09-23 19:13

Pseudocode:

print("Value of A, B, C, D")
A, B, C, D = input(), input(), input(), input()

Name: Anonymous 2011-02-04 13:28


Don't change these.
Name: Email:
Entire Thread Thread List