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
Vikki [24]
3 years ago
13

Ask the user to input an integer. Print out the next three consecutive numbers. in python

Computers and Technology
1 answer:
Brrunno [24]3 years ago
3 0

Answer:

Explanation:

n = int(input("Enter Number : "))

print(n+1,n+2,n+3)

You might be interested in
What is the proper citation for a video source? A. Video: Hank Aaron. Dir. Don Donto. VidCassette. 1985. DVD. Home Video, 1986.
VashaNatasha [74]
The answer it had to be B
6 0
3 years ago
Explain the concepts o f polymorphism, Encapsulation, Inheritance in detail with suitable examples?
levacccp [35]

Answer:

Encapsulation:-It is the binding of the data and functions so that they works as one unit.

Inheritance:-When one class acquires the property of another class it is called inheritance.

Polymorphism :-It generally means more than one form

Explanation:

Encapsulation:- class is an example of encapsulation it can hold different data types and functions in a single container called class.

class Name{

public:

string first_name;

string last_name;

void Display()

{

cout<<first_name<<" "<<last_name<<endl;

}

};

Inheritance:-The property of a class acquiring the properties of another class is called inheritance.

Now we will inherit the above defined class.

class person: public Name

{

public:

char gender;

int age;

void Display()

{

cout<<first_name<<" "<<last_name<<gender<<age<<endl;

}

};

int main()

{

Name n;

person p;

n.Display();

p.Display();

}

Polymorphism- There are two types of polymorphism:-

1.Run time polymorphism=The values are decided at run time.

2.Compile time polymorphism=The values are decided at compile time.

Example:-In the above example we have function Display() in both the classes.This is an example of compile-time polymorphism. We are deciding at the time of compilation which display to use.

8 0
3 years ago
PLEASE-I'M STUCK!!!!!!!!!!!!!!!!!!!!!!
Blababa [14]

Answer: Input is the answer.

8 0
2 years ago
You approach a railroad crossing with a cross buck sign that has no lights or gates. What should you do?
dalvyx [7]
You should or must stop 50 feet away from it.
8 0
3 years ago
Read 2 more answers
Which of the following is a basic strategy for minimizing the opportunity for error in a process?
dolphi86 [110]

Answer: b) Standardizing how the process is completed

Explanation:

Occurrence of error in a process can be due to several reason like human error,equipmental error, qualitative error etc.It includes internal as well as external factor.To eliminate the occurrence of fault in process, it is better to follow standard and systematic working in uniform way so that any kind of manipulation and modification does not lead to error.

  • Other options are not appropriate because trying harder will not correct chances of fault rather it will only waste the efforts.Not depending on technology is also not the solution to gain accuracy in process.
  • Thus, the correct option is option(b).
6 0
3 years ago
Other questions:
  • #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign di
    6·1 answer
  • The benefits associated with AAA are increased security, increased control over the network, and the capability of auditing your
    12·1 answer
  • As part of his proofreading process, and to catch any spelling or grammar mistakes, John uses this feature in Word Online to hav
    7·1 answer
  • Pls help! ive been looking everywhere online but I couldn't find the answer to this:
    5·1 answer
  • As a photographer, what will be the driving force behind everything that you produce?
    13·1 answer
  • My HTC Desire 510's mobile data stopped working, how to I make it work again?
    11·1 answer
  • Differentiate Between<br>Master file and transaction file<br>​
    15·2 answers
  • Decimal numbers is equivalent to binary 110
    5·1 answer
  • EASY What does the Backspace key do?
    6·1 answer
  • assume there are K sorted lists, each of n/k elements. We want to merge them into a single sorted list of n elements. Give an op
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!