- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
[CODE]#include"stdio.h" #include"string.h" #include"math.h" #include"stdlib.h" void convlute(char s1[20],char s2[20]) { int i,p=0,t=0; char s3[20]; for(i=0;i<20;i++) { if(s1[i]!='+'&&s1[i]!='-'&&s1[i]!='*'&&s1[i]!='/'&&s1[i]!='('&&s1[i]!=')') { s2[p]=s1[i]; p++; } else if(s1[i]='(') { t++; } else if(s1[i]=='+'||s1[i]=='-') { if(s3[t]=='*'||s3[t]=='/') { s2[p]=s3[t]; s3[t]=s1[i]; t++; p++; } else { s3[t]=s1[i]; t++; } } else if(s1[i]=='*'||s1[i]=='/') { s2[p]=s1[i]; p++; } else if(s1[i]==')') { … |
|
How can i make user enter any numbers and can make all operation on them and provide him with() like: (9+3)/(-3*4) i wanna a solution please thanks |
|
peace up on u everyone.. i wanna make a program in c++ include to make more than one matrix and i can make all calculations like + * - / on them like multiply 2 matrices ........... and i can save the matrix in program and i can Retrieves it … |