#include <stdio.h>
int main()
{
int x,y;
for (x=0,y=0;x+y<10;++x)
{
y=getchar();
y=y-'0';//subtrai o cod ASCCI do caractere 0 de y
printf("%d = X e %d = Y\n",x,y);
}
return 0;
}
This entry was posted
on Saturday, April 18th, 2009 at 11:59 and is filed under C.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.