Given two very large floating-point numbers in form of large strings str1 and str2, the task is to add the given two numbers. Example:
Input: str1 = “584506134.87368350839565308”, str2 = “30598657.0330473560587475634983” Output: 615104791.9067308644544006434983 Input: str1 = “38.30”, str2 = “37.0983” Output: 75.3983
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Approach: To find the addition of two large integers that can’t be stored in the inbuilt data type we will use an array to store the digits of the numbers and then perform the addition digit by digit starting from the LSB. Using this concept, we can also find the summation of large floating-point numbers. Steps to add the two given floating-point numbers:
- Split both the given floating-point number in form of a string with respect to the decimal point to separate the fractional and integer part of the numbers.
- Add the fractional and integer part of the two numbers separately and forward the final carry part of fractional addition to integers part. For Example:
- Concatenate the digits stored for integer and fractional part with a decimal ‘.’ to get the required sum two large floating point numbers.
Below is the implementation of the above approach:
CPP
// C++ program to find Sum of two
// large Floating-point numbers
#include <bits/stdc++.h>
using namespace std;
From Integer part = 58 From fractional part = 17 Sum = 58.171
From Integer part = 58 From fractional part = 17 Sum = 58.172
From Integer part = 58 From fractional part = 17 Sum = 58.173 From Integer part = 58 From fractional part = 17 Sum = 58.174From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.176
From Integer part = 58 From fractional part = 17 Sum = 58.177From Integer part = 58 From fractional part = 17 Sum = 58.178From Integer part = 58 From fractional part = 17 Sum = 58.175615104791.90673086445440064349830
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349834
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349837
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two0// C++ program to find Sum of two1// C++ program to find Sum of two2
615104791.90673086445440064349832// C++ program to find Sum of two5 // C++ program to find Sum of two6
// C++ program to find Sum of two7// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // large Floating-point numbers1
// large Floating-point numbers2// large Floating-point numbers3
// C++ program to find Sum of two7// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers9 615104791.90673086445440064349831
// C++ program to find Sum of two7// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // large Floating-point numbers1
// large Floating-point numbers2 7
// C++ program to find Sum of two7// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
// large Floating-point numbers5
#include <bits/stdc++.h>4
From Integer part = 58 From fractional part = 17 Sum = 58.172
From Integer part = 58 From fractional part = 17 Sum = 58.173 #include <bits/stdc++.h>7From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.176
using0From Integer part = 58 From fractional part = 17 Sum = 58.178From Integer part = 58 From fractional part = 17 Sum = 58.175615104791.90673086445440064349830
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349834
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349837
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two0// C++ program to find Sum of two1// C++ program to find Sum of two2
615104791.90673086445440064349832// C++ program to find Sum of two5 // C++ program to find Sum of two6
// C++ program to find Sum of two7// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // large Floating-point numbers1
// large Floating-point numbers2std;6
// C++ program to find Sum of two7// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers9 615104791.90673086445440064349831
// C++ program to find Sum of two7// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // large Floating-point numbers1
// large Floating-point numbers2From Integer part = 58 From fractional part = 17 Sum = 58.1710
// C++ program to find Sum of two7// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
// large Floating-point numbers5
From Integer part = 58 From fractional part = 17 Sum = 58.1717
From Integer part = 58 From fractional part = 17 Sum = 58.1718
From Integer part = 58 From fractional part = 17 Sum = 58.173 From Integer part = 58 From fractional part = 17 Sum = 58.1720
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 From Integer part = 58 From fractional part = 17 Sum = 58.1725
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1728
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1730
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.178From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.1734
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.178From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.1738
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1741
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1743
615104791.90673086445440064349832// C++ program to find Sum of two8 From Integer part = 58 From fractional part = 17 Sum = 58.1746
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1749
// C++ program to find Sum of two7// C++ program to find Sum of two5 From Integer part = 58 From fractional part = 17 Sum = 58.1752From Integer part = 58 From fractional part = 17 Sum = 58.1753From Integer part = 58 From fractional part = 17 Sum = 58.1754
// large Floating-point numbers2From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7// large Floating-point numbers5
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1761From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1768
615104791.90673086445440064349832// C++ program to find Sum of two8 From Integer part = 58 From fractional part = 17 Sum = 58.1771
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1773From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1741
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1782
615104791.90673086445440064349832// C++ program to find Sum of two8 From Integer part = 58 From fractional part = 17 Sum = 58.1785
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1749
// C++ program to find Sum of two7// C++ program to find Sum of two5 From Integer part = 58 From fractional part = 17 Sum = 58.1791From Integer part = 58 From fractional part = 17 Sum = 58.1753From Integer part = 58 From fractional part = 17 Sum = 58.1754
// large Floating-point numbers2From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7// large Floating-point numbers5
// C++ program to find Sum of two7615104791.906730864454400643498300From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1768
615104791.90673086445440064349832// C++ program to find Sum of two8 From Integer part = 58 From fractional part = 17 Sum = 58.1771
// C++ program to find Sum of two7615104791.906730864454400643498312From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832615104791.906730864454400643498319
615104791.90673086445440064349832615104791.906730864454400643498321
615104791.90673086445440064349832615104791.906730864454400643498323
615104791.90673086445440064349832615104791.906730864454400643498325
615104791.90673086445440064349832615104791.906730864454400643498327
615104791.90673086445440064349832615104791.906730864454400643498330
615104791.90673086445440064349832615104791.906730864454400643498332
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498335
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498338
615104791.90673086445440064349832615104791.906730864454400643498340
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498343
615104791.90673086445440064349832615104791.906730864454400643498346 615104791.906730864454400643498347
// C++ program to find Sum of two7615104791.906730864454400643498350
// C++ program to find Sum of two7615104791.906730864454400643498352
// C++ program to find Sum of two7615104791.906730864454400643498354
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498357
615104791.906730864454400643498358615104791.906730864454400643498359
615104791.906730864454400643498358615104791.906730864454400643498361
// C++ program to find Sum of two7615104791.906730864454400643498364
// C++ program to find Sum of two7615104791.906730864454400643498366
// C++ program to find Sum of two7615104791.906730864454400643498368
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498374
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498377
615104791.90673086445440064349832615104791.906730864454400643498340
615104791.90673086445440064349832615104791.906730864454400643498382
615104791.90673086445440064349832615104791.906730864454400643498332
615104791.90673086445440064349832615104791.906730864454400643498346 615104791.906730864454400643498387
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498390
615104791.906730864454400643498358615104791.906730864454400643498392
615104791.906730864454400643498358615104791.906730864454400643498361
// C++ program to find Sum of two7615104791.906730864454400643498396
// C++ program to find Sum of two7615104791.906730864454400643498366
// C++ program to find Sum of two7615104791.906730864454400643498368
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// C++ program to find Sum of two5 // C++ program to find Sum of two05
// C++ program to find Sum of two7// C++ program to find Sum of two07
615104791.90673086445440064349832// C++ program to find Sum of two10
615104791.90673086445440064349832// C++ program to find Sum of two12
615104791.90673086445440064349832// C++ program to find Sum of two14
615104791.90673086445440064349832// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two19
// C++ program to find Sum of two7// C++ program to find Sum of two21
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// C++ program to find Sum of two25From Integer part = 58 From fractional part = 17 Sum = 58.1753From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two32
// C++ program to find Sum of two7// C++ program to find Sum of two34
615104791.90673086445440064349832// large Floating-point numbers5
// large Floating-point numbers5
// C++ program to find Sum of two39
From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two41
615104791.90673086445440064349831
615104791.90673086445440064349832// C++ program to find Sum of two44
// C++ program to find Sum of two7// C++ program to find Sum of two46// C++ program to find Sum of two47From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832// C++ program to find Sum of two50
// C++ program to find Sum of two7// C++ program to find Sum of two46// C++ program to find Sum of two53From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832// C++ program to find Sum of two57
615104791.90673086445440064349832// C++ program to find Sum of two60 // C++ program to find Sum of two61
// large Floating-point numbers5
Java
// C++ program to find Sum of two63
// large Floating-point numbers
// C++ program to find Sum of two65 // C++ program to find Sum of two66
// C++ program to find Sum of two67// C++ program to find Sum of two9// C++ program to find Sum of two69// C++ program to find Sum of two70
// C++ program to find Sum of two71 // C++ program to find Sum of two72
615104791.90673086445440064349831
From Integer part = 58 From fractional part = 17 Sum = 58.171
From Integer part = 58 From fractional part = 17 Sum = 58.172
// C++ program to find Sum of two79 // C++ program to find Sum of two80
// C++ program to find Sum of two81// C++ program to find Sum of two82
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349834
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349837
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two93
615104791.90673086445440064349832// C++ program to find Sum of two5 // C++ program to find Sum of two6
// C++ program to find Sum of two97// C++ program to find Sum of two8 // C++ program to find Sum of two99// large Floating-point numbers00// large Floating-point numbers01
// C++ program to find Sum of two7// large Floating-point numbers03// large Floating-point numbers00// large Floating-point numbers05// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers9 615104791.90673086445440064349831
// C++ program to find Sum of two97// C++ program to find Sum of two8 // C++ program to find Sum of two99// large Floating-point numbers00// large Floating-point numbers01
// C++ program to find Sum of two7// large Floating-point numbers21// large Floating-point numbers00// large Floating-point numbers05// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832
// large Floating-point numbers31// large Floating-point numbers32// large Floating-point numbers33 // large Floating-point numbers34// large Floating-point numbers35// large Floating-point numbers36
615104791.90673086445440064349832// large Floating-point numbers38// large Floating-point numbers00// large Floating-point numbers40
615104791.90673086445440064349832// large Floating-point numbers38// large Floating-point numbers43// large Floating-point numbers44
615104791.90673086445440064349832// C++ program to find Sum of two60 // large Floating-point numbers47
// large Floating-point numbers5
#include <bits/stdc++.h>4
From Integer part = 58 From fractional part = 17 Sum = 58.172
// C++ program to find Sum of two79 // large Floating-point numbers56
// large Floating-point numbers57// C++ program to find Sum of two82
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349834
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.90673086445440064349837
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 // C++ program to find Sum of two93
615104791.90673086445440064349832// C++ program to find Sum of two5 // C++ program to find Sum of two6
// C++ program to find Sum of two97// C++ program to find Sum of two8 // C++ program to find Sum of two99// large Floating-point numbers00// large Floating-point numbers01
// C++ program to find Sum of two7// large Floating-point numbers03// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers9 615104791.90673086445440064349831
// C++ program to find Sum of two97// C++ program to find Sum of two8 // C++ program to find Sum of two99// large Floating-point numbers00// large Floating-point numbers01
// C++ program to find Sum of two7// large Floating-point numbers21// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// large Floating-point numbers32// large Floating-point numbers33 // large Floating-point numbers34// large Floating-point numbers35// large Floating-point numbers36
615104791.90673086445440064349832// large Floating-point numbers38// large Floating-point numbers00// large Floating-point numbers40
615104791.90673086445440064349832// large Floating-point numbers38// large Floating-point numbers43// large Floating-point numbers44
615104791.90673086445440064349832// C++ program to find Sum of two60 // large Floating-point numbers47
// large Floating-point numbers5
From Integer part = 58 From fractional part = 17 Sum = 58.1717
From Integer part = 58 From fractional part = 17 Sum = 58.1718
// C++ program to find Sum of two79 From Integer part = 58 From fractional part = 17 Sum = 58.173 28
615104791.90673086445440064349831
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 From Integer part = 58 From fractional part = 17 Sum = 58.1725
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1728
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1730
615104791.90673086445440064349832 39// large Floating-point numbers33 41
615104791.90673086445440064349832 43// large Floating-point numbers33 41
615104791.90673086445440064349832 47// large Floating-point numbers33 41
615104791.90673086445440064349832 51// large Floating-point numbers33 41
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1741
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1743
615104791.90673086445440064349832// C++ program to find Sum of two8 60// large Floating-point numbers43 62// large Floating-point numbers43 64
// C++ program to find Sum of two97From Integer part = 58 From fractional part = 17 Sum = 58.1749
// C++ program to find Sum of two97// C++ program to find Sum of two5 69From Integer part = 58 From fractional part = 17 Sum = 58.1753From Integer part = 58 From fractional part = 17 Sum = 58.1754
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two97// large Floating-point numbers5
// C++ program to find Sum of two97 78From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1768
615104791.90673086445440064349832// C++ program to find Sum of two8 87// large Floating-point numbers43 64
// C++ program to find Sum of two97 91From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1741
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1782
615104791.90673086445440064349832// C++ program to find Sum of two8 #include <bits/stdc++.h>02// large Floating-point numbers43 62// large Floating-point numbers43 64
// C++ program to find Sum of two97From Integer part = 58 From fractional part = 17 Sum = 58.1749
// C++ program to find Sum of two97// C++ program to find Sum of two5 #include <bits/stdc++.h>11From Integer part = 58 From fractional part = 17 Sum = 58.1753From Integer part = 58 From fractional part = 17 Sum = 58.1754
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two97// large Floating-point numbers5
// C++ program to find Sum of two97#include <bits/stdc++.h>20From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.1768
615104791.90673086445440064349832// C++ program to find Sum of two8 87// large Floating-point numbers43 64
// C++ program to find Sum of two97#include <bits/stdc++.h>33From Integer part = 58 From fractional part = 17 Sum = 58.1762From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832615104791.906730864454400643498319
615104791.90673086445440064349832615104791.906730864454400643498321
615104791.90673086445440064349832615104791.906730864454400643498323
615104791.90673086445440064349832#include <bits/stdc++.h>45
615104791.90673086445440064349832#include <bits/stdc++.h>47
615104791.90673086445440064349832#include <bits/stdc++.h>49// large Floating-point numbers00// large Floating-point numbers36
615104791.90673086445440064349832#include <bits/stdc++.h>53// large Floating-point numbers43// large Floating-point numbers36
615104791.90673086445440064349832#include <bits/stdc++.h>57// large Floating-point numbers00// large Floating-point numbers36
615104791.90673086445440064349832#include <bits/stdc++.h>61// large Floating-point numbers43// large Floating-point numbers36
615104791.90673086445440064349832615104791.906730864454400643498330
615104791.90673086445440064349832615104791.906730864454400643498332
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498335
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498338
615104791.90673086445440064349832#include <bits/stdc++.h>75// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 #include <bits/stdc++.h>80// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832615104791.906730864454400643498346 615104791.906730864454400643498347
// C++ program to find Sum of two97615104791.906730864454400643498350
// C++ program to find Sum of two97615104791.906730864454400643498352
// C++ program to find Sum of two97615104791.906730864454400643498354
// C++ program to find Sum of two97From Integer part = 58 From fractional part = 17 Sum = 58.175 #include <bits/stdc++.h>94
// C++ program to find Sum of two97#include <bits/stdc++.h>96#include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97using00#include <bits/stdc++.h>97using02// large Floating-point numbers43 using04// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two97615104791.906730864454400643498368
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498374
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.175 615104791.906730864454400643498377
615104791.90673086445440064349832#include <bits/stdc++.h>75// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832615104791.906730864454400643498382
615104791.90673086445440064349832615104791.906730864454400643498332
615104791.90673086445440064349832615104791.906730864454400643498346 615104791.906730864454400643498387
// C++ program to find Sum of two97From Integer part = 58 From fractional part = 17 Sum = 58.175 using30
// C++ program to find Sum of two97using32#include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two97using00#include <bits/stdc++.h>97using02// large Floating-point numbers43 using04// large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two97615104791.906730864454400643498368
615104791.90673086445440064349832// large Floating-point numbers5
615104791.90673086445440064349832// C++ program to find Sum of two5 using49// large Floating-point numbers00// C++ program to find Sum of two70
// C++ program to find Sum of two97using53
615104791.90673086445440064349832// C++ program to find Sum of two10
615104791.90673086445440064349832// C++ program to find Sum of two12
615104791.90673086445440064349832using59
615104791.90673086445440064349832using61
615104791.90673086445440064349832// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 using66
615104791.90673086445440064349832using68using69From Integer part = 58 From fractional part = 17 Sum = 58.1763
615104791.90673086445440064349832// C++ program to find Sum of two8 // C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.175 using75
// large Floating-point numbers5
// C++ program to find Sum of two39
using81 // C++ program to find Sum of two79 From Integer part = 58 From fractional part = 17 Sum = 58.173 using84
615104791.90673086445440064349831
615104791.90673086445440064349832using88// C++ program to find Sum of two47From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832using92// C++ program to find Sum of two53From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832// C++ program to find Sum of two57
// large Floating-point numbers5
// large Floating-point numbers5
namespace00
Python3
namespace01
namespace02
namespace04
namespace05
namespace06 namespace07
615104791.90673086445440064349832namespace09// C++ program to find Sum of two46 namespace11namespace12
615104791.90673086445440064349832namespace14// C++ program to find Sum of two46 namespace11namespace17
615104791.90673086445440064349832namespace19// C++ program to find Sum of two46 // C++ program to find Sum of two1namespace22namespace23 namespace24
615104791.90673086445440064349832// C++ program to find Sum of two5 namespace28
// C++ program to find Sum of two7// C++ program to find Sum of two8 namespace31namespace32 namespace33namespace34
// large Floating-point numbers2namespace36// large Floating-point numbers00// large Floating-point numbers05// large Floating-point numbers00// C++ program to find Sum of two70
615104791.90673086445440064349832// large Floating-point numbers9 using04
// C++ program to find Sum of two7// C++ program to find Sum of two8 namespace31namespace32 namespace33namespace34
// large Floating-point numbers2namespace51// large Floating-point numbers00// large Floating-point numbers05// large Floating-point numbers00// C++ program to find Sum of two70
615104791.90673086445440064349832
615104791.90673086445440064349832// C++ program to find Sum of two60 namespace59
namespace61
namespace05
namespace06 namespace64
615104791.90673086445440064349832namespace09// C++ program to find Sum of two46 namespace11namespace12
615104791.90673086445440064349832namespace14// C++ program to find Sum of two46 namespace11namespace17
615104791.90673086445440064349832namespace19// C++ program to find Sum of two46 // C++ program to find Sum of two1namespace22namespace23 namespace24
615104791.90673086445440064349832// C++ program to find Sum of two5 namespace28
// C++ program to find Sum of two7// C++ program to find Sum of two8 namespace31namespace32 namespace33namespace34
// large Floating-point numbers2namespace93// large Floating-point numbers00// C++ program to find Sum of two70
615104791.90673086445440064349832// large Floating-point numbers9 using04
// C++ program to find Sum of two7// C++ program to find Sum of two8 namespace31namespace32 namespace33namespace34
// large Floating-point numbers2std;06// large Floating-point numbers00// C++ program to find Sum of two70
// large Floating-point numbers2
615104791.90673086445440064349832// C++ program to find Sum of two60 namespace59
615104791.90673086445440064349832
std;15
std;16
namespace06 std;18
615104791.90673086445440064349832std;21
615104791.90673086445440064349832std;23
615104791.90673086445440064349832std;25// C++ program to find Sum of two46 std;27
615104791.90673086445440064349832std;29// C++ program to find Sum of two46 std;31
615104791.90673086445440064349832std;33// C++ program to find Sum of two46 std;27
615104791.90673086445440064349832std;37// C++ program to find Sum of two46 std;31
615104791.90673086445440064349832std;42
615104791.90673086445440064349832std;44
615104791.90673086445440064349832namespace31// C++ program to find Sum of two46 namespace11std;49namespace23 // large Floating-point numbers43
615104791.90673086445440064349832615104791.906730864454400643498346 std;54namespace23// large Floating-point numbers43using04
// C++ program to find Sum of two7std;59
// C++ program to find Sum of two7// C++ program to find Sum of two5 std;62// C++ program to find Sum of two46// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.1753std;66
// large Floating-point numbers2From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7
// C++ program to find Sum of two7std;72From Integer part = 58 From fractional part = 17 Sum = 58.175std;74
// C++ program to find Sum of two7namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832615104791.906730864454400643498346 std;54namespace23// large Floating-point numbers43using04
// C++ program to find Sum of two7std;94From Integer part = 58 From fractional part = 17 Sum = 58.175std;74
// C++ program to find Sum of two7namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832std;42
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17007
615104791.90673086445440064349832namespace31// C++ program to find Sum of two46 namespace11From Integer part = 58 From fractional part = 17 Sum = 58.17012namespace23 // large Floating-point numbers43
615104791.90673086445440064349832615104791.906730864454400643498346 std;54namespace23// large Floating-point numbers43using04
// C++ program to find Sum of two7std;59
// C++ program to find Sum of two7// C++ program to find Sum of two5 From Integer part = 58 From fractional part = 17 Sum = 58.17025// C++ program to find Sum of two46// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.1753std;66
// large Floating-point numbers2From Integer part = 58 From fractional part = 17 Sum = 58.1756From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17035From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.17037
// C++ program to find Sum of two7namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832615104791.906730864454400643498346 std;54namespace23// large Floating-point numbers43using04
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17057From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.17037
// C++ program to find Sum of two7namespace31namespace23// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17068
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17070
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17072
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17074// C++ program to find Sum of two46 615104791.906730864454400643498325
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17078// C++ program to find Sum of two46 615104791.906730864454400643498327
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17083
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17085
615104791.90673086445440064349832namespace09// C++ program to find Sum of two46 namespace11From Integer part = 58 From fractional part = 17 Sum = 58.17090
615104791.90673086445440064349832namespace14// C++ program to find Sum of two46 namespace11From Integer part = 58 From fractional part = 17 Sum = 58.17095
615104791.90673086445440064349832namespace31// C++ program to find Sum of two46 // large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17102// C++ program to find Sum of two46 // large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
From Integer part = 58 From fractional part = 17 Sum = 58.17106
615104791.90673086445440064349832615104791.906730864454400643498346 From Integer part = 58 From fractional part = 17 Sum = 58.17109From Integer part = 58 From fractional part = 17 Sum = 58.17110 From Integer part = 58 From fractional part = 17 Sum = 58.17111
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17114
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17116
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17118
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17120// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17122From Integer part = 58 From fractional part = 17 Sum = 58.17123 From Integer part = 58 From fractional part = 17 Sum = 58.17124From Integer part = 58 From fractional part = 17 Sum = 58.17123 From Integer part = 58 From fractional part = 17 Sum = 58.17126
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17122// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17120From Integer part = 58 From fractional part = 17 Sum = 58.17132 #include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17102// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.17139From Integer part = 58 From fractional part = 17 Sum = 58.17140 #include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two7
// C++ program to find Sum of two7namespace31From Integer part = 58 From fractional part = 17 Sum = 58.17123// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17151// C++ program to find Sum of two46 namespace11From Integer part = 58 From fractional part = 17 Sum = 58.17154
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17156// C++ program to find Sum of two46 namespace11From Integer part = 58 From fractional part = 17 Sum = 58.17159
615104791.90673086445440064349832namespace31// C++ program to find Sum of two46 // large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.1757
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17167
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17085
615104791.90673086445440064349832615104791.906730864454400643498346 From Integer part = 58 From fractional part = 17 Sum = 58.17172From Integer part = 58 From fractional part = 17 Sum = 58.17110 From Integer part = 58 From fractional part = 17 Sum = 58.17174
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17120// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17178From Integer part = 58 From fractional part = 17 Sum = 58.17123 From Integer part = 58 From fractional part = 17 Sum = 58.17180From Integer part = 58 From fractional part = 17 Sum = 58.17123 From Integer part = 58 From fractional part = 17 Sum = 58.17126
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17178// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17120From Integer part = 58 From fractional part = 17 Sum = 58.17132 #include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1757
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17102// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.175From Integer part = 58 From fractional part = 17 Sum = 58.17139From Integer part = 58 From fractional part = 17 Sum = 58.17140 #include <bits/stdc++.h>97From Integer part = 58 From fractional part = 17 Sum = 58.1763
// C++ program to find Sum of two7namespace31From Integer part = 58 From fractional part = 17 Sum = 58.17123// C++ program to find Sum of two46 // large Floating-point numbers43
615104791.90673086445440064349832
615104791.90673086445440064349832// C++ program to find Sum of two5 From Integer part = 58 From fractional part = 17 Sum = 58.17206// C++ program to find Sum of two46 // large Floating-point numbers00From Integer part = 58 From fractional part = 17 Sum = 58.17209
// C++ program to find Sum of two7From Integer part = 58 From fractional part = 17 Sum = 58.17211
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17214
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17216
615104791.90673086445440064349832std;25// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17220namespace23// large Floating-point numbers43From Integer part = 58 From fractional part = 17 Sum = 58.17223
615104791.90673086445440064349832std;33// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17227namespace23// large Floating-point numbers43From Integer part = 58 From fractional part = 17 Sum = 58.17223
615104791.90673086445440064349832From Integer part = 58 From fractional part = 17 Sum = 58.17232// C++ program to find Sum of two9From Integer part = 58 From fractional part = 17 Sum = 58.17234From Integer part = 58 From fractional part = 17 Sum = 58.17235using69// large Floating-point numbers05From Integer part = 58 From fractional part = 17 Sum = 58.17234From Integer part = 58 From fractional part = 17 Sum = 58.17239// C++ program to find Sum of two46 From Integer part = 58 From fractional part = 17 Sum = 58.17241