I'm writing flowcharts in C. And I've come across with the printable value "C{0}\t". It's in the fifth box.
I got the flowchart from the internet. So I don't have means to ask the person who made it for additional information. I think that the flowchart is not intended to be used in a C programming class, but in another language, which I don't know.
Any idea what is the meaning? How could I translate it into C?
Do you know what language is? I can find also in the same exercise sheet things like these:
i<array.GetLength(1)
or
DisplayLastWithColSums(int[,] array)
Thanks in advance.
I coded the following solution:
void main ()
{
int i = 0, j = 0, k = 0, col = 10;
char sum_dashes[1000] ;
printf("\n\t");
while (i < col)
{
printf("C%i\t", i + 1);
i++;
while (j < 8)
{
sum_dashes[k] = '-';
k++;
j++;
}
j = 0;
}
printf("\n\t");
for (i = 0; i < k; i++)
{
printf("%c", sum_dashes[i]);
}
}
That prints out the next result:
C1 C2 C3 C4 C5 C6
------------------------------------