Program to find sum of smallest number and largest number of given two prime numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 13

Program to find sum of smallest number and largest number of given two prime numbers

Input 12 18 Output 30 Input 30 50 Output 78

18th Sep 2019, 3:23 PM
Firas Ahmed
2 Answers
0
9th Jun 2020, 2:01 AM
meghana
meghana - avatar
- 2
I founded out prime numbers but did not know how to find smallest number of 1st number and largest number of 2nd number. So wanted a little bit of help.
18th Sep 2019, 3:49 PM
Firas Ahmed