Posts

Swap the two Numbers (interchange the value) without using third variable.

Image
5)      Write a program to input two number and Swap the Numbers (interchange the value) without using third variable. a=int(input("enter the first number : ")) b=int(input("enter the second number : ")) print("before swaping no. :") print("a= ",a) print("b= ",b) a=a+b b=a-b a=a-b print("after swaping no. :") print("a= ",a) print("b= ",b) swap-two-numbers-without-using-third-variable

swap the two numbers program in python

Image
4)     Write a program to input two number and Swap the Numbers (interchange the value) using third variable. a=int(input("enter the first number : ")) b=int(input("enter the second number : ")) print("before swaping no. :") print("a= ",a) print("b= ",b) c=a a=b b=c print("after swaping no. :") print("a= ",a) print("b= ",b) swap-two-numbers-program-in-python

write a program to input two numbers and their sum.(run time input)

Image
3)  write a program to input two numbers and their sum. a=int(input("enter the first number : ")) b=int(input("enter the second number : ")) c=a+b; print(c) output : Add-two-numbers-program-in-python  

Write a program in python to initialize two integer numbers and print the sum.

Image
2) Write a program in python to initialize two integer numbers and print the sum. a=10 b=20 c=a+b print(c)         output :    Add-two-numbers-program

write a program in python to print a massage.

Image
1)  write a program in python to print a massage. print("hello") printing message in python