Files
2021-05-07 14:32:40 +03:00
..
2021-05-07 14:27:48 +03:00
2021-05-07 14:31:33 +03:00

Workshop 2 User Guide

This workshop introduced you to basics of C++. This includes the operators, conditionals, loops and functions. The file main.cpp contains the source code to what we covered in details with well commented code for you to follow along.

Running the example

  • Open the main.cpp file
  • Copy the code and paste in the online compiler at Online GDB Here
  • Press the play button.
  • Happy Coding!

Practice Problems

  1. Using the knowledge so far, write a function that prints all numbers between 23 and 47 that are even and not divisible by 5.
  2. Find prime numbers between 0 and 100 ( TIP: make use of % operator)

Remember

Practise makes perfect, try many times to solidify your knowlwdge. Even the masters were once students.