Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

videid / iax0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 1
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • iax0583
  • lab7
  • lab7.cpp
Find file
BlameHistoryPermalink
  • videid's avatar
    lab6 & 7 · 9c5f51bd
    videid committed 7 years ago
    9c5f51bd
lab7.cpp 340 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#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("", array[j]);
	
	}
	return 0;
}
int function(int input) {
	return (input * (input - 1));
}