Ok, so far i have 2 strings inputed from keyboars into stringA and stringB, defined as db
now i need to count how many times is string B appearing in A and output that number.
Max lenght of strings is 29.
I think it should be done in 2 loop, to run throgh bouth string,
Can anyone help?
mihal 0 Newbie Poster
Recommended Answers
Jump to PostThat sounds like a reasonable approach.
Jump to PostWell you use 'divide by 10' and 'modulo 10' to extract each digit from the number, then add '0' to the result to get a printable character.
123 / 10 = 12
123 % 10 = 3
Take the 3, add '0' to it to get '3'
The only …
All 5 Replies
Salem 5,265 Posting Sage
mihal 0 Newbie Poster
JobMatchNow 0 Light Poster
Salem 5,265 Posting Sage
mihal 0 Newbie Poster
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.