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
TEA [102]
3 years ago
7

Write a complete program that declares an integer variable

Computers and Technology
1 answer:
Fed [463]3 years ago
3 0

Answer:

Java:

import java.util.Scanner;

public class Main {

 public static void main(String[] args) {

   Scanner sc = new Scanner(System.in);

   int number = sc.nextInt();

   System.out.println(number + " " + number*2 + " " + number**2);

 }

}

Python:

num = int(input("Number: "))

print(num+" "+num*2+" "+num**2)

C++:

#include <iostream>

int main() {

 int number;

 std::cin >> number;

 std::cout << num << " " << num*2 << " " << num**2;

 return 0;

}

You might be interested in
The trim video feature allows you to trim your clip by time measurements that are accurate to ____ of a second.
grigory [225]
The trim video feature allows you to trim your clip by time measurements that are accurate to one-thousandth of a second.  An example would be the P<span>owerPoint's </span>Trim Video feature which allows you<span> to </span>trim<span> the beginning and end of </span>your clip<span> by designating </span>your<span> desired Start </span>Time<span> and End </span>Time. These precise time measurements<span> are </span>accurate<span> to </span>one-thousandth<span> of a </span>second<span>.</span>
3 0
3 years ago
When creating an input/output table, where do you enter the formula?
balu736 [363]

When creating an input/output table, where do you enter the formula?  

A. In the input cell

B. In the output cell

C. In the title cell

D. In the table of contents


<u>ans. (B) In the output cell</u>

4 0
3 years ago
Which of the following statements is true?
Alex787 [66]
Seasons are caused by the earths changing distance from the sun
6 0
3 years ago
Please Help! I will give a Brainliest to anyone who answers with the right answer! Please and Thank You! What view is most often
Nata [24]

Answer:

form is used ethier to display or enter data in access 2016

8 0
3 years ago
How many bits are in the host portion of the address 192.168.150.19/23?
Alecsey [184]
23 bits are the network mask, so 32 - 23 bits are the node number.
3 0
3 years ago
Other questions:
  • Write a program named Admission for a college’s admissions office. The user enters a numeric high school grade point average (fo
    15·1 answer
  • Two electronics technicians are measuring electrical quantities in circuits. Technician A says that copper, glass, porcelain, an
    13·2 answers
  • While it might be considered "old-school," which action should you take if you are unsure how a page will print, even after look
    7·1 answer
  • What was the original motivation for developing the internet?
    7·1 answer
  • Which statement about muzzleloaders is true? All muzzleloaders are rifles. All muzzleloaders have only one barrel. Muzzleloaders
    12·1 answer
  • Write passage on computer virus​
    10·2 answers
  • What do you think color theory<br> in web design is?
    14·1 answer
  • After reading through the code, what will happen when you click run?​
    13·1 answer
  • The =COUNT function calculates what value?
    15·2 answers
  • Write a program which will -
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!