fork download
  1. #include <stdio.h>
  2. void main()
  3. {
  4. int i,n;
  5. printf("enter the range of series to be added :");
  6. scanf("%d",&n);
  7. printf("\n");
  8. for(i=1;i<=n;i++)
  9. { if(i<n)
  10. printf("%d+",i);
  11. else
  12. break;
  13. }
  14. }
  15.  
Runtime error #stdin #stdout 0s 2164KB
stdin
Standard input is empty
stdout
enter the range of series to be added :