Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Project 3 Part 1 v1.1
//gcc 5.4.0 #include <stdio.h> #include <stdlib.h> //Start Program //int n //int i //int f //READ n //for(i=0;i<=n;i++){ // f=(i-1)+(i-2); // printf("%d,",f); // } //End Program int main(void) { int n; int i; int f; scanf("%d",&n); if(n==0){ printf("0"); } else{ if(n>=2) printf("0,"); for(i=1;i<n;i++){ f=(i-1)+(i-2); f=abs(f); printf(",%d",f); } } }
run
|
edit
|
history
|
help
0
18BCE2182 ASSESS_2 Q3
example
is_there_segfault
TAREA M4 - LOTERIA
ele709 3.5 finished
SEGUNDO AVANCE DE NETFLIX
String operations in C (without using built-in methods)
Atoi test
FirstCProg
C(gcc) Local Time and math.h Example