I was wondering if you’s could help me out with this problem. I want to display the following numbers in this format
0:0
1:0
2:0
3:0
4:0
and so on, but they come out on the screen like this 01234:0:0:0:0:0
any ideas???heres my code, thanks
#include <stdio.h>
#include <conio.h>
#define MAX 5
int array[MAX];
main()
{
int i, y;
for(i=0; i<MAX; i++)
{
printf("%d", i);
}
for(y=10; y < 15; y++)
printf(":%d", array[i + y]);
getch();
}