Advertisement
salmancreation

User Making Function C Promgraming

Jun 25th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2.     int x=5,y=4,add;
  3.     int sum()
  4.     {
  5.        add = x+y;
  6.        return add;
  7.     }
  8.     int main()
  9.     {
  10.         int d;
  11.         d = x-y;
  12.         printf("Result is = %d",sum() - d);
  13.         return 0;
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement