1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lady_Fox [76]
3 years ago
11

Write a complete program that declares an integer variable, reads a value from the keyboard into that variable, and writes to st

andard output the variable's value, twice the value, and the square of the value, separated by spaces. besides the numbers, nothing else should be written to standard output except for spaces separating the values.
Computers and Technology
1 answer:
NNADVOKAT [17]3 years ago
6 0
The programming language to use here is not stated, so standard output is not clear. A solution using text boxes for input and output can be given in Delphi:

unit Unit2;
interface
uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls;
type  TForm2 = class(TForm)   
Edit1: TEdit;   
Edit2: TEdit;   

procedure FormCreate(Sender: TObject); 
private    { Private declarations } 
public    { Public declarations } 
end;
var  Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.FormCreate(Sender: TObject);
var   i: integer;   
txtline: string;
begin   
    i := StrToInt(edit1.text);   
    txtline := IntToStr(i) + ', ' + IntToStr(2 * i) + ', ' + IntToStr(i * i);   edit2.text := txtline;
end;
end.


You might be interested in
A ________ is a set of rules that governs data communication.
natulia [17]
The organised system of rules governing affairs is called protocol. the answer is B) protocol

6 0
4 years ago
Click this link to view O*NET’s Work Activities section for Manicurists and Pedicurists. Note that common activities are listed
devlian [24]

Answer:

c and e

Explanation:

4 0
3 years ago
In computer Drag and Drop“ means to select the items, hold down the mouse and
kompoz [17]

Answer:

Release the mouse in the desired location.

5 0
3 years ago
What does l m a o actually mean?
vladimir2022 [97]

Answer:

L-Laughing m-my a-a*s o-off

Explanation:

8 0
3 years ago
____________ is a series of numbers that identifies a particular computer. They may or may not be a reliable way to link you to
Valentin [98]

Answer:

An IP Address

Explanation:

Every computer or networking device has its own IP address. It is a series of numbers that will uniquely identify a particular computer on the internet. Since the computer connects to the internet via a router (provided by the Internet Service Provider), it is the router's IP address (or simply the network address) that is shared on the internet. So, the IP address is not exactly a reliable way of linking you to what you do on a computer.

<em>Hope this helps!</em>

6 0
3 years ago
Other questions:
  • Write the pseudo code to display the largest number from given 3 numbers.(n1,n2,n3,).
    10·1 answer
  • What allows people to create their own radio shows over the internet?
    14·1 answer
  • Which option allows you to customize the order of your data ?
    8·2 answers
  • Which is an advantage of setting bookmarks?
    15·1 answer
  • You can view information for the individual people who will perform the tasks on theproject in the
    7·1 answer
  • Write a program that gets a list of integers from input, and outputs the integers in ascending order (lowest to highest). The fi
    5·1 answer
  • Write a Python program that asks the user for a positive, odd value. Once the value is validated determine if the number is Prim
    11·1 answer
  • ICT 10
    8·1 answer
  • Which Excel function or tool will you use to display the cells that are referred to by a formula in the selected cell
    8·1 answer
  • As data travels further over a wavelength or frequency, what goes down?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!