Hello friendly community, i´m really new in coding and also here registred on stackoverflow, so excuse me when I ask such simple questions. I lack the understanding to understand why this code does not work, because even after compiling no error message appears. My Code below shows my try to code a while loop, calculating the factioral and printing the total:
#include <stdio.h>
/*      Factorial 5! = 5*4*3*2*1      */
main ()
{
    int Wert;
    int fak = 1;
    scanf ("%d", Wert);
    while ( Wert > fak) {
        fak = fak * Wert;
        Wert = Wert - 1;
        printf ("%d", fak);
    }
}
It should calculate the factorial after input of a number and print the total. Maybe this can´t work but i don´t understand the why. Thank you for your time.
 
    