i cannot find any error in the code
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char a[50];
int i;
setbuf(stdout,NULL);
printf("enter a string");
gets(a);
for(i=0;a[i]<='\0';i++){
if(a[i]>='A'&&a[i]<='Z'){
a[i]=a[i]+32;
}
}
printf("%s",a);
return EXIT_SUCCESS;
}
output
enter a string SDJnjj SDJnjj