programming like c, c++, java,python learn in free

Tuesday, March 31, 2020

Arithmetic operation for given number

Q. write a python program arithmetics operation for the given number.
consider the two number num1=20 num2=10

Ans:
num1=20
num2=10
num3=num1+num2
print("The addition of two number is=",num3)
num4=num1-num2
print("The substraction of two number is",num4) 
num5=num1*num2
print("The multiplication of two number is",num5) 
num6=num1/num2
print("The division of two number is",num6) 

Output
 The addition of two number is=30

 The substraction of two number is=10

 The multiplication of two number is=200

 The division of two number is=2


Share:

1 comment:

Unordered List

recentposts1
Powered by Blogger.

Text Widget

Featured Post

C programming Question and Answer Day-15

71. Program to check Niven number (Harshad number). #include<stdio.h> #include<conio.h> void main() {     int n, d, a, su...

Search This Blog

recent comments

recentcomments

Labels

[slideshow][technology]

vertical posts

[verticalposts][technology]

business

[business][grids]

ad space

ads 600

vehicles

[cars][stack]
[verticalposts][food]

our facebook page

about us

logo

Jupiter is a magazine responsive Blogger template. It has everything you need to make your blog stand out. This template is fully customizable and very flexible and we believe you will love it as much as we do.

Slide show

[people][slideshow]

health

[health][btop]

recent posts

recentposts1

Subscribe Us

random posts

randomposts2

Blog Archive

Recent Posts

top ads

Unordered List

recent

Pages

Theme Support

[socialcounter] [facebook][#][215K] [twitter][#][115K] [youtube][#][215,635] [rss][#][23M] [linkedin][#][21.5K] [instagram][#][600,300]