lesson 10 show emp c
[[lesson_10_show_emp_c]] last edit on
Aug 18, 2005
6:10 AM
by rescued_by_c
[user02@FC4 Lesson10]$ cat -n show_emp.c
[user02@FC4 Lesson10]$ ./show_emp
The employee is 32 years old
The employee makes $25000.000000
[user02@FC4 Lesson10]$
1 #include <stdio.h>
2
3 void show_employee(int age, float salary)
4 {
5 printf("The employee is %d years old\n", age);
6 printf("The employee makes $%f\n", salary);
7 }
8
9 int main(void)
10 {
11 show_employee(32, 25000.00);
12
13 return 0;
14 }
[user02@FC4 Lesson10]$ gcc -o show_emp show_emp.c[user02@FC4 Lesson10]$ ./show_emp
The employee is 32 years old
The employee makes $25000.000000
[user02@FC4 Lesson10]$