Problem 34

2 comments on “Problem 34”


  • amit

    #include
    #include

    int main()
    {
    char arr[]=”Amit Tikhe 1010″;
    int digit=0;
    int upper=0;
    int lower=0;
    printf(“%s”,arr);
    for(int i=0;i=48 && arr[i]=65 && arr[i]=97 && arr[i]<=122)
    lower++;

    }
    printf("\n");
    printf("%d %d %d",digit,upper,lower);

    return 0;
    }


  • VIVEK KUMAR

    #Python
    words=input(“Enter the sentence”)
    c=0
    u=0
    l=0
    for i in words:
    if i.isupper():
    u=u+1

    elif i.islower():
    l=l+1
    else:
    c=c+1
    print(‘Speial char is {}’.format(c))
    print(‘Lower case is {}’.format(l))
    print(‘Upper case is {}’.format(u))