Skip to main content

How to difference between two numbers in Python3:




Input Format: The first line of the input contains two numbers separated by a space.

Output Format:
 Print the difference in single line

Example:


Input:
  9 6

Output:
   3

Explanation:


Since the difference of numbers 4 and 2 is 2, hence the output is 2.
 


SOURCE CODE:

a,b=input().split()
c=int(a)
d=int(b)
x=c-d
print(x)

Comments

Popular posts from this blog

Know about Fuchsia OS

Fuchsia is a capability-based operating system currently being developed by Google. It first became known to the public when the project appeared on GitHub in August 2016 without any official announcement. In contrast to prior Google-developed operating systems such as Chrome OS and Android, which are based on the Linux Kernel, Fuchsia is based on a new microkernel called "Zircon". The GitHub project suggests Fuchsia can run on many platforms, from embedded systems to smartphones, tablets, and personal computers. In May 2017, Fuchsia was updated with a user interface, along with a developer writing that the project was not a "dumping ground of a dead thing", prompting media speculation about Google's intentions with the operating system, including the possibility of it replacing Android. Fuchsia is also a future based operating system,it will be grow or famous than android operating system and vice versa. Fuchsia OS is written by C,C++,Go,Rust,...

Make Money Online Using Quora Marketing Is So Famous, But Why?

You don't have any online skills, don't have money, don't have website also don't have any products nothing. But you want to start online business today.  Can you still make money online? The short answer is YES. In this article I will tell you how to make money online without money, website or products.  You don't need any website, you don't  need any budget, you don't need any online skills, you just need to follow me and read the article. I will tell you exactly strategy how to make money online,  even from the first month. So stay tuned, make patience and follow me.  Hi this is Santanu from Tech Pathsala. You are reading Tech Pathsala blog. So without wasting more time let's get started. Simply whenever you want to make money online or even offline the main strategy is selling a products. So that's simple, we have a product and we have an  audience that love to buy this product. So you can sell them this product, that's simple.  Now main prob...

Programming Assignment-1: Holes

Let us assume paper as the plane and a letter as a curve on the plane, then each letter divides the plane into regions. For example letters "A", "D", "O", "P", "R" divide the plane into two regions so we say these letters each have one hole. Similarly, letter "B" has two holes and letters such as "C", "E", "F", "K" have no holes. We say that the number of holes in the text is equal to the total number of holes in the letters of the text. Write a program to determine how many holes are in a given text . Input Format: The only line contains a non-empty text composed only of uppercase letters of English alphabet. Output Format: output a single line containing the number of holes in the corresponding text. Example-1 Input: DRINKEATCODE Output: 5 Explanation: D R A O D has one hole hence total number of holes in the text is 5. Source Code ip=input() c=0 H1=[...