answersLogoWhite

0


Best Answer

Input statements extract data from an input stream. For example:

int x;

std::cin >> x;

Output statements insert data to an output stream. For example:

std::cout << x;

You cannot insert data into an input stream and cannot extract data from an output stream. However, streams that are both input and output streams (such as read-write files) can insert and extract data as required, depending on whether you are reading or writing to the stream.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

using the input statement ,we can input the data into the computer .This statement provides the facility to input the data at the time of execution of the program and when the processing is complete ,we can give another data to the same variable ,which has been previously . when the inputs are given by using INPUT statement ,they cannot be a part of the program ,hence the same program can also process the other data

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

syntax input and output

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the input statement for a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When you input data in a loop within a program the input statement that proceeds the loop is what?

is called a priming input


What happens when the encounters an input statement?

WHAT HAPPENS WHEN THE COMPUTER ENCOUNTERS AN INPUT STATEMENT


What is the use of INPUT statement?

Input command is used to enter the values while the program is being executed. this command waits for the user to enter the information and then assigns the values accordingly.


What happen when the computer encounter an input statement?

WHAT HAPPENS WHEN THE COMPUTER ENCOUNTERS AN INPUT STATEMENT


What is legal input?

In a computer program, a legal input is something that can be put into a program and it will work. An illegal input may crash the program.


Which is not a way to input data into a program?

without understanding the program giving a input


Is pset an input statement?

No.


How do you create a program that can input 100 names using flowchart?

create a program that can input 100 names


What is robust on java?

A robust program is a program that will accept junk input and not crash. Example: a program that accepts "pancakes" for a date input and pops up a error box or just uses a date input so that this does not happen is a robust program.


What is anti-dependence?

Statement S2 is anti-dependent on statement S1 if S2 follows S1 in program order and if the output of S2 overlaps the input of S1. The anti-dependence S1 to S2 define as cross arrow such as S1 |-&gt; S2.


What is the syntax of scanf?

scanf: scanf is a built-in function to read input from the user.


What is input -output bound program?

input output bound program is a program (or process in precise way), which spends most of time allocated to it for execution, on input/output devices and need very small CPU time for it.