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

emonyi / IAX0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • 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
Commit 2f54c510 authored 6 years ago by emonyi's avatar emonyi
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Upload New File

parent 29bbb025 master
Hide whitespace changes
Inline Side-by-side
Showing with 28 additions and 0 deletions
  • Ethanbonustask/task2.c
Ethanbonustask/task2.c 0 → 100644
View file @ 2f54c510
/*
* Bonus Task 2
* */
#include <stdio.h>
#include <stdlib.h>
int main(){
int i;
int array[6], sum=0;
for(i=0; i < 6; i++){
array[i]= i + 1;
printf("%d\n", array[i]);
}
for(i=0; i < 6; i++){
sum=sum + array[i];
printf("%d ", sum);
}
return 0;
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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