Please note that this post is for the students in the course in CPS 125 (CPS125 : Digital Computation and Programming), the reason for making these posts are 1) aid the students in the course, 2) to improve my communication skills via writing.
Disclaimer: I was not instructed to write these posts, additionally, I won’t provide any materials directly related to solutions for the assignments.
Hello again! Let's get right into the user input use cases!
As seen above we can ask the user to put in some sort of input and print out the input right back.
We can even ask for the numbers and sum them up! → Now this concept can be extended to having multiple numbers.
With simple typecast, we can even convert the integers into doubles!
C Type Casting
C Type Casting - Learn C programming in simple and easy steps starting from basic to advanced concepts with examples…
For more information make sure to read the above link!
More information will follow….
- C Type Casting. (2019). www.tutorialspoint.com. Retrieved 4 February 2019, from https://www.tutorialspoint.com/cprogramming/c_type_casting.htm
- C Programming/Simple input and output — Wikibooks, open books for an open world. (2019). En.wikibooks.org. Retrieved 4 February 2019, from https://en.wikibooks.org/wiki/C_Programming/Simple_input_and_output