finding output

#include<iostream.h>
#include<stdlib.h>
void main()
{
randomize();
char city[][10]={ "DEL","CHN","KOL","BOM","BNG"};
int fly;
{
fly=random(2)+1;
cout<<city[fly]<<" ";
}
}

OUTPUTS:

1) DEL:CHN:KOL:
2) CHN:KOL:CHN:
3) KOL:BOM:BNG:
4) KOL:CHN:KOL:
:-)
Topic archived. No new replies allowed.