Splitting the Number and..

버전 1.0.0 (1.23 KB) 작성자: Akshay Kumar
This code tried to find if the entered number can be split into 3 parts such that, the 3rd part will be the sum of the 1st and 2nd part.
다운로드 수: 9
업데이트 날짜: 2018/10/29

라이선스 보기

This code tried to find if the entered number(number greater than 100) can be split into 3 parts such that, the 3rd part will be the sum of the 1st and 2nd part.
Let abc be the number, then if a + b = c, abc passes.

Example 1:
Number = 9999198
99+99=198

Example 2:
Number= 123
1 + 2 = 3

Example 3:
Number= 201800012019
2018 + 0001 = 2019

Example for fail:
Number = 451
the sum would never result into 1.

Number= 2010000001
No combination will be able to spit the number such that the sum of first 2 part would be equal to the 3rd part.

인용 양식

Akshay Kumar (2024). Splitting the Number and.. (https://www.mathworks.com/matlabcentral/fileexchange/69258-splitting-the-number-and), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Numbers and Precision에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0