How boron is a metalloid and carbon is a non-metal ?
(since carbon has 4 electrons in valence shell,therefore it will either donate or gain electrons and so it should be a metalloid)
(since boron has three valence electrons,therefore it will donate and so it should be a metal )