Commit a4f10e4c by videid

lab7

parent 9c5f51bd
Showing with 26 additions and 0 deletions
#include <stdlib.h>
#include <stdio.h>
#define ARRAY_SIZE 25
int function(int input);
int main() {
int array[ARRAY_SIZE] = { 0 };
for (int i = 0; i < ARRAY_SIZE; i++) {
array[i] = function(i);
}
for (int j = 0; j < ARRAY_SIZE; j++) {
int b = array[j];
printf("%d", j);
}
return 0;
}
int function(int input) {
return (input * (input - 1));
}
int test() {
char b = "message";
printf("%d",19 )
return b;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment