1 / 6

CS1010E Programming Methodology

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).

holland
Télécharger la présentation

CS1010E Programming Methodology

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS1010EProgramming Methodology

  2. gg=G • Auto-indent • Do NOT rely on that. • Rely on yourselves

  3. Skeleton Template #include “stdio.h” int main() { // your code return 0; }

  4. 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)

  5. Task 2: 3rd Rightmost Digit Get an integer (input) 3285 / 10 = 328 3285 % 10 = 5 Get the 3rd rightmost digit Display the digit (output)

  6. Good Luck!! Have Fun!! Poh Yee Hui yhpoh91@nus.edu.sg

More Related