Home
Resources
Latest reviews
Search resources
Forums
New posts
Search forums
Members
Current visitors
New profile posts
Search profile posts
What's new
New posts
New resources
New profile posts
Latest activity
Rules
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Community
Spammm
C++ learning help pls
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
.
Reply to thread
Message
<blockquote data-quote="carlborg" data-source="post: 60324" data-attributes="member: 244"><p>hey that worked thanks <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>also now i have another question split in 2 things</p><p></p><p>a) write a program that requests the user to enter several integers then prints the smallest number, Assume that the first value to be read specifies the number of integers to be processed and is therefore not the one of the values to compare... </p><p>so in this you have to ask the user how many numbers does he need to enter. Then depending on the number inputted, ask the user to enter those integers. The program should then compare the numbers and output the smallest number.</p><p></p><p>the second question you should read a 5 digit integer â divide the integer into the 5 different digits. Then you should compare digit 1 with digit 5 and digit 2 with digit 4 â if equal say that the number is a palindrome.</p><p></p><p>Sample program 1:</p><p> </p><p>Enter a 5-digit integer: 12341</p><p>Digit 1: 1</p><p>Digit 2: 2</p><p>Digit 3: 3</p><p>Digit 4: 4</p><p>Digit 5: 1</p><p>This number is not a palindrome.</p><p> </p><p>Sample program 2:</p><p> </p><p>Enter a 5-digit integer: 12321</p><p>Digit 1: 1</p><p>Digit 2: 2</p><p>Digit 3: 3</p><p>Digit 4: 2</p><p>Digit 5: 1</p><p>This number is a palindrome.</p><p></p><p>i know this is long but if you could help me it would be great <3</p><p>thanks</p></blockquote><p></p>
[QUOTE="carlborg, post: 60324, member: 244"] hey that worked thanks :) also now i have another question split in 2 things a) write a program that requests the user to enter several integers then prints the smallest number, Assume that the first value to be read specifies the number of integers to be processed and is therefore not the one of the values to compare... so in this you have to ask the user how many numbers does he need to enter. Then depending on the number inputted, ask the user to enter those integers. The program should then compare the numbers and output the smallest number. the second question you should read a 5 digit integer â divide the integer into the 5 different digits. Then you should compare digit 1 with digit 5 and digit 2 with digit 4 â if equal say that the number is a palindrome. Sample program 1: Enter a 5-digit integer: 12341 Digit 1: 1 Digit 2: 2 Digit 3: 3 Digit 4: 4 Digit 5: 1 This number is not a palindrome. Sample program 2: Enter a 5-digit integer: 12321 Digit 1: 1 Digit 2: 2 Digit 3: 3 Digit 4: 2 Digit 5: 1 This number is a palindrome. i know this is long but if you could help me it would be great <3 thanks [/QUOTE]
Name
Verification
Name a popular topic discussed in the ugbase.eu community
Post reply
Home
Forums
Community
Spammm
C++ learning help pls
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top