TBD.my
C++ - Printable Version

+- TBD.my (https://w3.tbd.my)
+-- Forum: Programming (https://w3.tbd.my/forum-7.html)
+--- Forum: C/C++ (https://w3.tbd.my/forum-25.html)
+--- Thread: C++ (/thread-14576.html)



C++ - Zhaffier - 13-02-2014

Mohon pencerahan masta2.still newbie in coding
Write a C++ program that receives input for 5 children and prints the names of their teacher inside a loop. (Teachers names are fictitious. So give your own name


RE: C++ - lamki - 13-02-2014

Quote:begin

declare array 'namaCikgu' [suraya, ..., ..., ..., ...];
declare array 'namaBudak' [5];
for(i < 5)
{ input namaBudak[i]}

for(i < 5)
{
print namaBudak[i] + namaCikgu[i]
}

end

peace.