View Code of Problem 25

#include <stdio.h>
int main()
{
        int t,i=0;
        scanf("%d",&t);
        char arr[]={0};
        while(t>0)
        {
                char c1,c2;
                scanf("%c",&c1);
                c2=c1+32;
                arr[i++]=c2;
                t--;
        }
        for(int j=0;j<i;++j)
        {
                printf("%c\n",arr[i]);
        }
        return 0;
}

Double click to view unformatted code.


Back to problem 25