main.c 482 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. int
  8. test_add(int x, int y);
  9. int
  10. test_sqrt(int x, int y);
  11. int
  12. main(int argc, char **argv)
  13. {
  14. int x = 10, y = 20, res;
  15. printf("Hello World!\n");
  16. res = test_add(x, y);
  17. printf("%d + %d = %d\n", x, y, res);
  18. res = test_sqrt(x, y);
  19. printf("sqrt(%d, %d) = %d\n", x, y, res);
  20. return 0;
  21. }