This code prints the next letters of what I input.
For example, I input "v
", it will show vwxyz
, but I want it to print the others too, like vwxyzabc.....
int main()
{
char a;
int flag = 0;
scanf("%c", &a);
while (a <= 'z')
{
printf("%c", a);
a++;
}
printf("\n");
return 0;
}
I am new to c++, can someone help me?