how can i make a program by using like this(25/6+3-83/2)to get the sum of them?
rebintahsin 0 Newbie Poster
Recommended Answers
Jump to PostDo you mean you need a program that can accept inputs in the style of your example and correctly determine the value?
I would separate the string on the mathmatical operators (+,-,x, /) and bracket, then use the BODMAS rule to figure out the order for which the operations take …
All 4 Replies
hericles 289 Master Poster Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
gusano79 247 Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.