#include <stdio.h>
#include <string.h>
int main()
{
char x[10],y[10];
int i,qnt;
fgets(x
,sizeof(x
),stdin
);
/******** 1 PASSADA ************/
for(i = 0; i<qnt; i++)
{
if (((x[i]>=65) && (x[i]<=90)) || ((x[i]>=97) && (x[i]<=122)) )
y[i]=x[i]+3;
else
y[i]=x[i];
printf("%d %d , %c \n",i
,y
[i
],y
[i
]); }
printf("tamanho da string %i \n",qnt
);
printf("normal %d , %s\n",x
,x
); printf("1 passada , %s \n",y
);
printf("normal %d , %s\n",x
,x
); for(i = 0; i<qnt; i++)
{
printf("%d %d , %c \n",i
,x
[i
],x
[i
]);
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KaW50IG1haW4oKQp7CiAgICBjaGFyIHhbMTBdLHlbMTBdOwogICAgaW50IGkscW50OwogICAgZmdldHMoeCxzaXplb2YoeCksc3RkaW4pOwogICAgcW50ID0gc3RybGVuKHgpOwoKICAgIC8qKioqKioqKiAgIDEgUEFTU0FEQSAgKioqKioqKioqKioqLwogICAgZm9yKGkgPSAwOyBpPHFudDsgaSsrKQogICAgewogICAgICAgIGlmICgoKHhbaV0+PTY1KSAmJiAoeFtpXTw9OTApKSAgfHwgKCh4W2ldPj05NykgJiYgKHhbaV08PTEyMikpICkKICAgICAgICAgICAgeVtpXT14W2ldKzM7CiAgICAgICAgZWxzZQogICAgICAgICAgICB5W2ldPXhbaV07CiAgICAgICAgcHJpbnRmKCIlZCAlZCAsICVjIFxuIixpLHlbaV0seVtpXSk7CiAgICB9CgogICAgcHJpbnRmKCJ0YW1hbmhvIGRhIHN0cmluZyAlaSBcbiIscW50KTsKCiAgICBwcmludGYoIm5vcm1hbCAlZCAsICVzXG4iLHgseCk7CiAgICBwcmludGYoIjEgcGFzc2FkYSAgLCAlcyBcbiIseSk7CgogICAgcHJpbnRmKCJub3JtYWwgJWQgLCAlc1xuIix4LHgpOwogICAgZm9yKGkgPSAwOyBpPHFudDsgaSsrKQogICAgewogICAgICAgIHByaW50ZigiJWQgJWQgLCAlYyBcbiIsaSx4W2ldLHhbaV0pOwoKICAgIH0KCiAgICByZXR1cm4gMDsKfQo=
0 119 , w
1 104 , h
2 123 , {
3 119 , w
4 114 , r
5 32 ,
6 35 , #
7 51 , 3
tamanho da string 8
normal 1133562672 , texto #3
1 passada , wh{wr #3
normal 1133562672 , texto #3
0 116 , t
1 101 , e
2 120 , x
3 116 , t
4 111 , o
5 32 ,
6 35 , #
7 51 , 3