logo

Background and foreground processes

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> int main(int argc, char* argv[]) { int x; printf("Input number: "); scanf("%d", &x); printf("Result %d * 5 = %d\n", x, x * 5); return 0; }
Course thumb

The C programming language made simple

Courses with this lesson