Title | Cheatsheet |
---|---|
Course | Introduction to Computing and Programming I |
Institution | National University of Singapore |
Pages | 3 |
File Size | 278.1 KB |
File Type | |
Total Downloads | 41 |
Total Views | 159 |
cheatsheet...
Bigger sum Write a function bigger_sum that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
E.g. 1
For example, given three numbers 1, 2 and 3, since 2 and 3 are larger than 1, the bigger_sum function should return the integer value 13. int bigger_sum(int a, int b, int c) { int min, b1, b2; if (a...