70 likes | 211 Views
CS1010E Programming Methodology. g g =G. Auto-indent Do NOT rely on that. Rely on yourselves. Skeleton Template. #include “ stdio.h ” int main() { // your code return 0 ; }. Task 1: Matrix Determinant. Get 4 integers: a, b, c, d (input). Get the determinant (a x d – b x c).
E N D
gg=G • Auto-indent • Do NOT rely on that. • Rely on yourselves
Skeleton Template #include “stdio.h” int main() { // your code return 0; }
Task 1: Matrix Determinant Get 4 integers: a, b, c, d (input) Get the determinant (a x d – b x c) Display the determinant (output)
Task 2: 3rd Rightmost Digit Get an integer (input) 3285 / 10 = 328 3285 % 10 = 5 Get the 3rd rightmost digit Display the digit (output)
Good Luck!! Have Fun!! Poh Yee Hui yhpoh91@nus.edu.sg