Code:
#include <stdio.h>
#include <ctype.h>


main()
{
    int c;
    
    while((c=getchar()) !=EOF)
        putchar(tolower(c));
        return 0;
}
I tried to convert "LeaRnIng pRogrAm." to "Learning program." (Standard written) using "." to end the input and the first character using Upper case while the others use lowercase .
but with my code I just can make "learning program."
how's step to make it, what I need to add to my code? can anyone help me..