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?

Continue Learning about Engineering

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 is Logic error in java programming?

Logical errors are grammatical errors or mistakes made by a programmer in java, it may not affect the program design but it can change the context of the statements.


What is snarled program logic called?

Snarled program logic is unstructured logic, also known as "spaghetti" logic. Compiled machine code is the ultimate example of snarled program logic. Although spaghetti code is more compact and efficient than structured code, it is extremely difficult to both comprehend and maintain. Hence we use structured programming languages to provide a high level of abstraction between the logic of the programmer and the snarled logic of the machine-dependant code.


What is the Difference between program and flowchart?

Flowchart it is diagrammatic Program it is coding. A flowchart is drawn out on paper, and shows the logic of an if/then/else statement. The programming actually is the if/then/else, not just the logic.


What is AOI logic analysis?

AOI logic analysis refers to the combination of AND, OR, and Inverter (NOT) gates used in digital circuits to create complex logic functions. It allows for the simplification and efficient design of logic circuits by reducing the number of gates needed. AOI logic is commonly employed in integrated circuits and programmable logic devices to optimize performance and minimize space. This approach enhances circuit design by leveraging the strengths of these fundamental logic operations.

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