I wrote this code to convert a mathematical equation from 1 form to another but when you put in everything it just crashes. I was hoping if some can point out my mistakes to me.
Code:
#include <stdio.h>
#include <math.h>
int main()
{
char z,w,G,num,den;
float Ts;
z=z;
w=z-1/Ts;
G=num/den;
printf("Please enter the samplling rate: ");
scanf("%f",&Ts);
printf("Please enter the numarator in terms of w: ");
scanf("%s",&num);
printf("Please enter the denominator in terms of w: ");
scanf("%s",&den);
printf("The discrete transfer function in the form of Z is %s \n",G);
return 0;
}