Menggeser kata secara berurutan



//  ---------------------------------------------------------
//    Algorithm and Programming in C  
//  ---------------------------------------------------------
//         
//   Author : adhita muslim  
//   Written in C Language using MS Visual C++ 
//   Copyright : 2007    
//         
//  ---------------------------------------------------------
#include
#include

char kata[100];
int i,j,jum=0;

void geser() 
{

 for(i=0;kata[i]!='\0';i++)
 {
  jum++;
 }
 printf("There are -->> %d <<-- characters \n\n",jum);

 for(i=0;i
    printf("Input string : ");
 gets(kata);
 printf("\n");

 geser();
 printf("\n");
}

0 comments:

Post a Comment