Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
C141105_SwitchNotas
Project 4 v1
C(gcc) Local Time and math.h Example
Taco practice
22nd HW Switchv1.0
sum of min and max
18BCE2182 LAB FAT-2-A-i
rsqrt from 0
shrinken shraken shrank leave as no cold call acces program unles clownbtweak blue voda
ques.1
Please log in to post a comment.