We continued with flow charts. we learned about div ( / ), modulo ( % ), &&, || and loops. we practiced three types of loops: do-while, while, for-loop. the next subject was creating c# console application (.NET framework) with visual studio – what do we get “out of the box”? we practiced variables creation using int, float, double and debugged our program using F10 and breakpoints (viewing also the Locals window)
More topics covered:
- Flow chart: when to use do-while? while? for?
- Eventually you can choose any loop type you want
- The better choice of loop type you make- will simplify the program
- When x % b == 0Â it means they divide with no modulo
- so…   9 % 2 == 1 (e-zugi)   and   8 % 2 == 0 (zugi)
- x % 10 will give the last digit (ahadot)
- so…Â Â 97 % 10 = 7
- x / 10 will give you the first digit (asarot)
- so…Â Â 97 / 10 = 9Â (the 7 is dropped in div)
- In VS2017: for debug you can simply click F10
- float f = 9.9f; (f needs to be added for floats)
- Also, you can add Breakpoint using F9 and then run using F5
- Its easier to add breakpoint when you have a long program and you do not want to hurt yourself by clicking F10 many many many times till you reached the desired code section
- We talked about GIT repository
Links: