Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2. int question20(int no1, int no2, int no3, int no4);
  3. int main() {
  4. int no1 = 5;
  5. int no2 = 1;
  6. int result;
  7. result = question20(no1, no2, no1, no2);
  8. printf("Here it is: %d", result);
  9. return 0;
  10. }
  11. int question20(int no1, int no2, int no3, int no4) {
  12. int res;
  13. res = no1 + no2;
  14. res = res - no3;
  15. res = res + no4;
  16. return res;
  17. }
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ----------------------
  26.  
  27.  
  28.  
  29.  
  30.  
  31. char str1[] = "Denny";
  32. int i = 0;
  33. while (str1[i] != '\0') {
  34. printf("%c", str1[i]);
  35. i++;
  36. }
  37. printf("\nCrane!\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement