+ 1
if given inputs are int and sum value is double. how do we do that?
2 Respuestas
+ 3
you should always use double as input if there is chanch of double . and converting it isn't that hard. just asign it as double value to own or create a new variable
0
double som(int a,int b)
{
double c=a+b;
return c;
}