Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- int main()
- {
- char sr[12], *p = sr;
- int result, i, c1=1, c2=1;
- char n, k;
- printf("\n Enter the example \n");
- gets_s(sr);
- if (sr[0] == '-')
- {
- if (sr[5] == '-')
- {
- c2 = -1;
- }
- }
- for (p = sr; (*p > '48') && (*p < '58'); p++)
- {
- if (sr[i] == '')
- p++;
- }
- printf("\n The result is: %d", result);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement