What is the difference between if-else and else-if?

1 answer

Answer

1143914

2026-11-01 12:26

+ Follow

if-else implies a first statement, while else-if implies that we would know what else is but we don't because else is defined by if.

ReportLike(0)ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.