#include <stdio.h>
void congratulateStudent(char *student, char *course, int numDays) {
printf("%s has done as much %s programing as I could fit into %d days \n", student,course,numDays);
}
int main(int argc, const char * argv[]) {
congratulateStudent("Litao", "C++", 4);
congratulateStudent("WangMin", "Swift", 9);
congratulateStudent("LingLing", "COBOL", 20);
congratulateStudent("Tom", "ObjectiveC", 22);
return 0;
}
Result:
Litao has done as much C++ programing as I could fit into 4 days
WangMin has done as much Swift programing as I could fit into 9 days
LingLing has done as much COBOL programing as I could fit into 20 days
Tom has done as much ObjectiveC programing as I could fit into 22 days
Program ended with exit code: 0