Advertisement
Guest User

Untitled

a guest
May 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <windows.h>
  3. int main()
  4. {
  5. char sr[12], *p = sr;
  6. int result, i, c1=1, c2=1;
  7. char n, k;
  8. printf("\n Enter the example \n");
  9. gets_s(sr);
  10. if (sr[0] == '-')
  11. {
  12. if (sr[5] == '-')
  13. {
  14. c2 = -1;
  15. }
  16. }
  17. for (p = sr; (*p > '48') && (*p < '58'); p++)
  18. {
  19. if (sr[i] == '')
  20. p++;
  21. }
  22. printf("\n The result is: %d", result);
  23. system("PAUSE");
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement