Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          control-structures/for-c.c - A program with a for loop in C.Lecture 1 - slide 26 : 34
Program 1

#include <stdio.h>

int main(void){

  int i = 55, j = 77;

  printf("i = %d, j = %d\n\n", i, j);

  for(j = 10, i = 0; i < 5; i++, j++){
    printf("i = %d, j = %d\n", i, j);
  }
  printf("\n");

  printf("i = %d, j = %d\n", i, j);

  return 0;
}