How do i properly see how many inputs were read in my scanf function? when i run the below code it does not display the result, is this because i dont have 2 inputs read from scanf or some other reason here is my code:
#include <stdio.h> 
int main()
{
float numberOne;
float numberTwo;
scanf("%f %f", &numberOne, &numberTwo);
float result = numberOne + numberTwo;
int howManyRead = scanf("%f %f", &numberOne, &numberTwo);
if ( howManyRead == 2)
{
    printf("%f", &result);
}   
else
{
    printf("invalid input");
}
sleep(10);
}
 
     
    