Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Saturday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
C# Programing FAQ - Post here
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Ranhiru" data-source="post: 4485799" data-attributes="member: 17748"><p>as i understand his problem machan he wants it to be a number less than 10.. but your solution is not going to work as it is going to be a char array which will take in the question.. such as 5^5 which should return the answer 3125 (5x5x5x5x5)... but what is the user enters a two digit number for the question...such as 5^10... then there is a problem of finding the proper answer...</p><p></p><p>Machan Fazaal i think what u should do is run the loop until u find a ^...add all the characters to a char array before the ^</p><p></p><p>and then pass the char array to a function named atoi</p><p></p><p><a href="http://www.cprogramming.com/fod/atoi.html" target="_blank">check how to use atoi</a></p><p></p><p>EDIT : atoi does not seem to be working on C#... but if its C# its gonna be even more easier because there is a String Class... and Int32.Parse could do the job... but what i feel is like you are asking for C help <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="Ranhiru, post: 4485799, member: 17748"] as i understand his problem machan he wants it to be a number less than 10.. but your solution is not going to work as it is going to be a char array which will take in the question.. such as 5^5 which should return the answer 3125 (5x5x5x5x5)... but what is the user enters a two digit number for the question...such as 5^10... then there is a problem of finding the proper answer... Machan Fazaal i think what u should do is run the loop until u find a ^...add all the characters to a char array before the ^ and then pass the char array to a function named atoi [URL="http://www.cprogramming.com/fod/atoi.html"]check how to use atoi[/URL] EDIT : atoi does not seem to be working on C#... but if its C# its gonna be even more easier because there is a String Class... and Int32.Parse could do the job... but what i feel is like you are asking for C help :D [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom