I have the following code:
This seperates 3 and 5 into rowsa and colsa when theCode:printf("Enter order of matrix A (e.g. 3x5) : "); scanf("%dx%d", &rowsa, &colsa);
user types 3x5
how do i generalise this to any character between two numbers?
i.e., i want it to work when the user types
2y5
2 5
2-4
23-4
23 44
also, if possible...
22--- 44
(more than one space, character in between the numbers)