Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
void calculateSum(int x, int y) { int sum = x + y; printf("The sum of %d + %d is: %d\n", x, y, sum); } int main() { calculateSum(5, 3); calculateSum(8, 2); calculateSum(15, 15); return 0; }
The sum of 5 + 3 is: 8
The sum of 8 + 2 is: 10
The sum of 15 + 15 is: 30