You are here: Home / Past Courses / Spring 2017 - ECPE 170 / Tutorials / example5.c

example5.c

C source code icon example5.c — C source code, 1 KB

File contents

#include <stdio.h>

int function(int a);

int main()
{
  int x=5;
  int y;

  y = function(x);
  
  printf("y=%i\n", y);

  return 0;
}

int function(int a)
{
  return 3*a+5;
}