Apna Hindi Tech Website Computer science рдХे Students рдФрд░ Technology рдХे рдмाрд░े рдоें рдЬाрдирдХाрд░ी рд░рдЦрдиे рд╡ाрд▓े рд▓ोрдЧों рдХे рд▓िрдП рдмрд╣ुрдд рд▓ाрднрджाрдпрдХ Web site рд╣ै।
рд╣рдоाрд░ी Website Apna Hindi Tech рдкрд░ Free рдоें Python Programming language рд╣िंрджी рдоें рд╕िрдЦाрдИ рдЬाрддी рд╣ै рдФрд░ рджुрдиिрдпा рдоें рдЬो рд▓ेрдЯेрд╕्рдЯ рдЯेрдХ्рдиोрд▓ॉрдЬी(Technology) рд╣ै рдЙрд╕рдХे рдмाрд░े рдоें рд╡िрд╕्рддाрд░ рд╕े рдмрддाрдпा рдЬाрддा рд╣ै।
рджोрд╕्рддों рд╣рдордиे рдЕрдкрдиी рд╡ेрдмрд╕ाрдЗрдЯ Apna Hindi Tech рдкрд░ Python Programming рд╕े рд░िрд▓ेрдЯेрдб рдмрд╣ुрдд рд╕ाрд░े Softwares рдмрдиाрдиा рднी рд╕िрдЦाрдпा рд╣ै рд╡ो рднी рдЕрдкрдиी рднाрд╖ा рд╣िंрджी рдоें।
Arithmetic Operators in Python - Hacker Rank Solution | Hindi
Hello Friends
рдЖрдЬ рд╣рдо рдЖрдкрдХो Hacker Rank рдкрд░ Arithmetic Operators in Python
рдХा рдХंрдк्рд▓ीрдЯ рд╕ॉрд▓्рдпूрд╢рди рдмрддाрдПंрдЧे рд╡рд╣ рднी рдЖрд╕ाрди рднाрд╖ा рдоें। рддो рджोрд╕्рддों рдЪрд▓िрдП рдЬाрдирддे рд╣ैं рд╕ॉрд▓्рдпूрд╢рди ।
Task:-
The provided code stub reads two integers from STDIN, and . Add code to print three lines where:
- The first line contains the sum of the two numbers.
- The second line contains the difference of the two numbers (first - second).
- The third line contains the product of the two numbers.
Example :-
a=3
b=5
Input Format :-
The first line contains the first integer, a.
The second line contains the second integer, b.
Constraints :-
1 < a < 10^10
1 < b < 10^10
Output Format:-
Print the three lines as explained above.
Sample Input 0
3
2
Sample Output 0
5
1
6
Explanation 0
3 + 2 = 5
3 - 2 = 1
3 * 2 = 6
Solution:-
if __name__ == '__main__':
a = int(input())
b = int(input())
print(a+b)
print(a-b)
print(a*b)
Video Tutorial:
DISCLAIMER:-
The above hole problem statement is given by hackerrank.com but the solution is generated by the Apna Hindi Tech authority if any of the query regarding this post or website fill the following contact form.
Thank youЁЯШК
Post a Comment
Post a Comment