All pastes #56275 Raw Edit

b

public c v1 · immutable
#56275 ·published 2006-05-16 17:51 UTC
rendered paste body
#include <stdio.h>main () {        char crke[100];        int i=0;        int j, crka, stevilka;        printf("Vpisi besedo:");        scanf("%s", &crke);        while( crke[i] != 0 ){                if ( (crke[i] >='A' && crke[i] <='Z')  ||  (crke[i] >='a' && crke[i] <='z') )                {                        printf("%c",crke[i]);                        crka = crke[i];                        i++;                }                else if ( crke[i] >='0' && crke[i] <='9') {                        stevilka = (crke[i] - '0');                        for(j=0; j < stevilka-1; j++) {                                printf("%c",crka);                        }                        i++;                }        }        printf("\n");        return(0);}