fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <string.h>
  4. int main(void) {
  5. char text[100];
  6. printf("Skriv text här:\n");
  7. scanf("%s",text);
  8.  
  9. for(int i=strlen(text); i>=0; i--){
  10. printf("%c", text[i]);
  11.  
  12. }
  13. }
  14.  
  15.  
  16.  
Success #stdin #stdout 0s 2172KB
stdin
whyhaveyou 



stdout
Skriv text här:
uoyevahyhw