answersLogoWhite

0

Enter values and end of the list enter -1 to see output. but execute it at command line.

<?php

function readData(){

fwrite(STDOUT, "Please enter your name\n");

// Read the input

$name = fgets(STDIN);

if($name != -1)

readData();

fwrite(STDOUT, "Hello $name");

return;

}

readData();

?>

start

num Sub

num Size = 10

index = 0

while index<10

index = index + 1

endwhile

while index > 0

index = index - 1

endwhile

print Sub

stop

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What tools can you can use to design program logic?

paper plaintext


What are the answers for Programming logic and design chapter 6?

program calculates


When was Reverse Logic - album - created?

Reverse Logic - album - was created in 1981.


What is the logic circuit for a full adder using only NAND gate?

by the procedure design a half subtractor design a logic ciruit to add two numbers with five bits each drawthe logic diagram of afull adder using using NAND gates only ?


What is a diagram that graphically depicts the steps that take place in a program?

Flowchart pg 32 Programming Logic and Design by Tony Gaddis


What has the author Krome Barratt written?

Krome Barratt has written: 'Logic and design' -- subject(s): Design 'Logic and Design, Revised'


What is the process of logic without numbers?

Most studies in logic: Boolean algebra, predicate logic etc are independent of numbers.


Need of program Logic controllers?

Program logic controllers are used to control the operation of most systems.


Who studies logic design?

If you mean Logic as in Electronics, Computers etc... Then Electrical and Electronics Engineers study Logic design including True/False equations, AND/OR/NAND/NOR Gates. Logic design is essential for Electronic/Microprocessor and other electronic equipment design tasks. Entire computers of any complexity can be broken down to individual logic elements.


What has the author Frederic J Mowle written?

Frederic J. Mowle has written: 'A systematic approach to digital logic design' -- subject(s): Logic circuits, Logic design


A debugging process in which you imagine that you are the computer executing a program is called?

Hand Tracing Page 63 Programming Logic and Design by Tony Gladdis


What has the author Arthur D Friedman written?

Arthur D. Friedman has written: 'Fundamentals of logic design and switching theory' -- subject(s): Logic circuits, Logic design, Switching theory