#include <stdio.h> int main(void) { int a=0,b=1,c,n,i; scanf("%d",&n); for(i=0;i<=n;i++) { c=a+b; a=b; c=b; } printf("%d",c) return 0;}
6
prog.c: In function ‘main’: prog.c:13:2: error: expected ‘;’ before ‘return’ return 0; ^~~~~~
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!