Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf_s("Number of equations (1-3):");
- scanf_s("%d", &numeq);
- while (numeq < 0 || numeq>4)
- {
- printf_s("Please enter a number between 1-3.n");
- printf_s("Number of equations(1 - 3): ");
- scanf_s("%d", &numeq);
- }
- if (numeq == 1)
- {
- printf_s("Enter equation 1:");
- fgets(equations1, sizeof(equations1), stdin);
- getchar();
- while (equations1[i] != '/0')
- {
- mekdem[p] = equations1[i];
- while (equations1[k] != 'x', 'y', 'z' || equations1[k] != '/0');
- {
- sum = equations1[k - 1] + sum * 10;
- k++;
- mekdem[p] = sum;
- }
- i = k + 2;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if (numeq == 2)
- {
- printf_s("Enter equation 1:");
- fgets(equations1, sizeof(equations1), stdin);
- getchar();
- printf_s("Enter equation 2:");
- fgets(equations2, sizeof(equations2), stdin);
- getchar();
- }
- if (numeq == 3)
- {
- printf_s("Enter equation 1:");
- fgets(equations1, sizeof(equations1), stdin);
- getchar();
- printf_s("Enter equation 2:");
- fgets(equations2, sizeof(equations2), stdin);
- getchar();
- printf_s("Enter equation 3:");
- fgets(equations3, sizeof(equations3), stdin);
- getchar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement