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
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 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
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom