Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Algorithm that flips sentences and numbers

#include <stdio.h>
#include<string.h>
int main(void) {
  int n,m,j;
  char i,t[n],d[n];
printf("enter the first word :");
gets(t);
n=strlen(t);
   for(j=n-1;j>=0;j--){
   printf("%c",t[j]);
   }
  return 0;
}
 
PREVIOUS NEXT
Tagged: #Algorithm #flips #sentences #numbers
ADD COMMENT
Topic
Name
2+3 =