#include <stdio.h>
int main() {
// declare an array of size 4
int a[4];
// storing integers in the array
a[0] = 10;
a[1] = 20;
a[2] = a[1] / a[0]; // a[2] will be set to 20/10 = 2
a[3] = a[1] - 2; // a[3] will be set to 20-2 = 18
// printing the integers
printf("%d %d %d %d\n", a[0], a[1], a[2], a[3]);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: