Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Deny ( 14 years ago )
#include <iostream>
int stringLength( char* string ){
int dlugosc = 0;
int i = 0;
while( string[i] ){
dlugosc++;
i++;
}
return dlugosc;
}
int main() {
int d,i,j;
char mojString[20];
int licznik[26];
char alfabet[26];
printf("Podaj string do zmiany: ");
scanf("%s",mojString);
d=stringLength( mojString );
/*Usuwanie Liter*/
printf("\n\n");
for(j=0;j<=d-1;j++){
for(i=j;i<=d-1;i++){
printf("%c",mojString[i]);
}
printf(" ");
}
}
Revise this Paste