Hacker Rank Problems In Hindi

HackerRank – Arithmetic Operators In Hindi

Hacker Rank

HackerRank – Arithmetic Operators In Hindi  Is Post Me HackerRank Ke Python Programming Language Se Related Competitive Questions Ka Answer Hai. Is Post Me HackerRank – Python Ka Question No 3 Ko Solve Kiya Gaya Hai.

HackerRank – Python Solution Series Ke Sabhi Questions Ka Solved Codes Ko Diya Jayega. Saath Hi Unko Hindi Me Explain Bhi Kiya Jayega.

Yadi Aapne Abhi Tak Python Full Course In Hindi Read Nhi Kiya Hai To Aap Pahle Wo Kare Nhi To Aapko HakcerRank- Python Solution Ke Tutorial Ko Understand Karne Main Dikkat Ho Sakti Hai.

HackerRank – Arithmetic Operators In Hindi

Contents

HackerRank Ke Python Series Ka Question HackerRank – Arithmetic Operators Ka Full Solution With Explanation In Hindi Hai.

Task

Sabse pahle aapko users se two integers no input karnwana hai in variable a and b.

a and b ke value par three operations karna hai and output dena hai.

  • First line me both a and b ka addition karna hai
  • Second line par a and b ka subtraction value hoga. (first number – second number)
  • Third line par a and b ka multiplication value show karna hai.

Input

  1. First line par variable a ke liye 1st integer ka input lenge.
  2. Second line par variable b ke liye 2nd interger ka input lenge.

Constraints

1 <= a <= 1010

a ka value 1 se jyada and 10 to the power 10 se less hona chahiye.

1 <= b <= 1010

b ka value 1 se jyada and 10 to the power 10 se less hona chahiye.

Output

Task me Rules ko explain kiya hua hai. First, Second and Third line ko print kare.

Sample Input 0

3
2

Sample Output 0

5
1
6

Explanation 0

First number and Second number ka addition kare. Addition karne ke baad usko First line par print kare.

First number and Second number ka subtraction kare. Subtraction karne ke baad usko Second line par print kare.

First number and Second number ka multiplication kare. Multiplication karne ke baad usko Third line par print kare.

Solution

if __name__ == '__main__':
    a = int(input())
    b = int(input())
    
    print(a+b)
    print(a-b)
    print(a*b)

STEP 1 – Sabse Pahle a = int(input()) function se variable a ke liye interger number ko store karenge.

STEP 2 – Sabse Pahle b = int(input()) function se variable b ke liye interger number ko store karenge.

STEP 3 – Ab variable a and b ke sum ko print karenge.

STEP 4 – Ab variable a and b ke subtraction ko print karenge.

STEP 5 – Ab variable a and b ke multiplication ko print karenge.

Upar Diye Hue Code Ko Aap Apne Code Editor Me Use Kar Sakte Hai And Practice Kar Sakte Hai.

Disclaimer

The Above Whole Problem Statement Is Given By Hackerrank.Com But The Solution Is Generated By The masterprograming.com Authority If Any Of The Query Regarding This Post Or Website Fill The Contact Us Form.

-Masterprogramming

Friends Mujhe Umeed Hai Ki Aapko HackerRank – Arithmetic Operators In Hindi   Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mujhse Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *