fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int s,e,a,b,c;
  5. printf("enter start and end nums");
  6. scanf("%d%d",&s,&e);
  7. a=s;
  8. b=s+1;
  9. printf("a=%d b=%d",a,b);
  10. c=a+b;
  11. while(c<=e)
  12. {
  13. printf("%d",c);
  14. a=b;
  15. b=c;
  16. c=a+b;
  17. }
  18. return 0;
  19. }
  20.  
  21.  
Success #stdin #stdout 0s 4296KB
stdin
Standard input is empty
stdout
enter  start and end numsa=1463018000 b=1463018001-1368931295