“Program Python, aby dodać dwie liczby” Kod odpowiedzi

Program Python, aby dodać dwie liczby

#create two variable to store the user input number
num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
#create a third variable to store the sum of two no.s
sum = num1 + num2
print('The sum of two entered numbers is:', sum)
Enchanting Eel

suma 2 liczb w Pythonie

a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
sum = a+b
print(sum)
Easy Earthworm

Jak dodać dwie liczby w Pythonie

num1 = int(input('any number'))
num2 = int(input('any number'))
print(sum(num1,num2))
Homeless Hamster

Jak dodać Python

a = int(input())
b = int(input())
s = a+b
print(S)
Prickly Penguin

Napisz prosty program Python, który dodaje 2 liczby Togethe

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\USER>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:34:34) [MSC v.1928 32 bit (
Intel)] on win32
>>> x = 5
>>> y = 10
>>> print(x + y)
15
Tejumola Olaniyan

Python z dodaj dwie liczby

a = int(input("Enter Teh value of a: "))
b = int(input("Enter The value of b: "))

sum = a+b
print(sum)
Smoggy Swan

Odpowiedzi podobne do “Program Python, aby dodać dwie liczby”

Pytania podobne do “Program Python, aby dodać dwie liczby”

Więcej pokrewnych odpowiedzi na “Program Python, aby dodać dwie liczby” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu