I cannot get the exponential to work with user input. Every time user is prompted to add input, after the input is entered the program immediately closes.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
double input = 0;
double exp_val;
printf("Plese enter the exponent to check for convergence:");
scanf("%f", input,"\n");
printf("%f", input);/*Checking to verify the input is entered*/
exp_val = exp(input);
printf("%f", exp_val);
getchar();
}