Problem 43283. Subtract integers and add doubles
Create a function that subtracts b from a if a and b are integers and adds them if they are floats.
Solution Stats
Problem Comments
- 
		4 Comments
		    Show
		    1 older comment
		  
		  
		David Verrelli
    	on 6 Jul 2018
	
	
  	Too many clues are given in the Solution Template.
		David Verrelli
    	on 6 Jul 2018
	
	
  	Also, Problem Statement is inconsistent with Test Suite (and Solution Template). It should say: "Create a function that subtracts b from a" (not "a from b").
		Pink_panther
    	on 1 Oct 2020
	
	
  	SHOULD BE SUBSTRACTS b FROM A
		goc3
    	on 3 Oct 2020
	
	
  	The problem description has been updated.
Solution Comments
Show commentsProblem Recent Solvers120
Suggested Problems
- 
         
         4144 Solvers 
- 
         
         838 Solvers 
- 
         
         501 Solvers 
- 
         
         544 Solvers 
- 
         
         2612 Solvers 
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!