Hello I wrote this code it's meant to convert a mathematical from 1 form to another but I cannot enter the numarator and the denominator sepeartly please help me as I'am out of ideas of what to do to solve it.
Code:
#include <stdio.h>
int main()
{
char z,w,G,num,den;
float Ts;
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("%c",&num);
printf("Please enter the denominator in terms of w: ");
scanf("%c",&den);
printf("The discrete transfer function in the form of Z is %c \n",G);
return 0;
}