|
-
March 18th, 2012, 08:01 PM
#1
Please Can Anyone Help me with this?
I have been having very hard trouble trying to code even these simple codings. I am taking intro to computer science in my school and I have not been able to fully understand the concepts and is getting pretty far behind....
can anyone just show me how the codes are supposed to look like for these questions
(Conditional Statement)
1.) Write a program that asks the user for three numbers(They could be decimals numbers.) The user inputs the numbers one by one(Not necessarily sorted.) Then, the program outputs the three numbers in increasing order.
(I'm pretty sure this is for loops, while)
2.) Write a program that prints whether an integer given by user is prime or not
3.) Write a program that finds all divisors(one by line) of a number given by user.
Please help me with these if possible.. Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|