ppupil2

Q07-PRF192-PE-31.03

Mar 31st, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <math.h>
  5.  
  6.  
  7. int main() {
  8.   system("cls");
  9.   //INPUT - @STUDENT:ADD YOUR CODE FOR INPUT HERE:
  10.     char o[100];
  11.     fflush(stdin);
  12.     gets(o);
  13.  
  14.  
  15.   // Fixed Do not edit anything here.
  16.   printf("\nOUTPUT:\n");
  17.   //@STUDENT: WRITE YOUR OUTPUT HERE:
  18.     for (int i = strlen(o)-1; i>=0; i--) {
  19.         printf("%c", o[i]);
  20.     }
  21.  
  22.  
  23.  
  24.  
  25.   //--FIXED PART - DO NOT EDIT ANY THINGS HERE
  26.   printf("\n");
  27.   system ("pause");
  28.   return(0);
  29. }
Add Comment
Please, Sign In to add comment