Machan i pasted this code on a windows application of dev C++ .And it compiled successfully.But when i hit the RUN button command prompt appeared and said press any key to continue and after pressing a key it closed..........
I erased all the codings which comes automatcially when we create a windows application ....May be that is the case !!!! So Please help me on this !!!
මුලින් ම අලුත් ප්රොජෙක්ට් එකක් Open කරන්න Console mode එක තෝරගන්න
ඊට පස්සෙ ඔය code එක paste කරන්න(මුලින් එතන තියෙන කෝඩ් එක අයින් කරන්න)
ඊට පස්සෙ F9 ගහන්න.


.........and then i tried to achieve that particular output,diamond.!!!! as u have mentioned i couldn't get the real shape !!! The reason should be that .Thanks for your contribution.