Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float sum(int a, float b, short c) {
- int s = a + b + c;
- char cs[100] = "hello";
- printf("the sum of abc is %d: ", s);
- return s; // if we used void we dont have to "return"
- }
- int main() {
- int a;
- float b;
- short c;
- scanf_s("%d %f %hi", &a, &b, &c);
- sum(a, b, c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement