You can opt for a bachelor's degree in computer science that requires you to invest 4 years.