My lecturer just taugh me function call. Anyway how do I get two value from user (vis scanf) then assign the value into the function call for calculation. Now 8 and 10 is fixed.
Thanks!Code:#include<stdio.h> int sum(int x, int y){ int sum = x+ y; return sum; } int main(){ int y; sum(8,10); y=sum(8,10); printf("Sum is %d", y); getchar(); }