I've got four assignments due tomorrow, I did all but one because I'm just so confused. If anyone can help, it would mean the world to me.

So here it is,and thank you in advanceb...

Write a program that will read an integer N and then compute 2 to the power N. You are required to use a for loop.

In the examples below, what you see in italics is what the computer prints and what you see in boldface is what the user types.

Example 1

Enter N: 3

2 to the power 3 is 2*2*2 = 8

Example 1

Enter N: 5

2 to the power 5 is 2*2*2*2*2 = 32

2. So where's your attempt? This has to be one of the simplest loop assignments I've ever seen posted here.

Originally Posted by kermi3
Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Make sure you have a look at the the posting guidelines:
http://cboard.cprogramming.com/annou...ouncementid=51
Following the rules will ensure you get a prompt answer to your question.

Remember, too, that the board has a search facility, a link is at the top of your screen:
http://cboard.cprogramming.com/search.php
It will often get you a quicker answer to your questions than waiting for a response to one you have posted.

It appears that you are posting a homework assignment or other project.

Please don't ask people to do all your work for you, See the announcement on Homework at the top of all forums to see what is acceptable or PM me. Basically people are happy to help, but they're not going to do it all for you.

Show us what you've got, show your code (using code tags), or where you're confused and someone will be happy to help you I'm sure. If it's something that you absolutely don't understand how it works, like you have no clue how qsort works, then ask a general question about the function and I'm sure someone will explain it. Though they may not give you all of the code for it, but someone will explain the concept.

On obivous homework questions especially, I like to remind people of the board's ninth guildeline, while this board is very helpful to people, make sure you have your instructor's permission before seeking help on assignments. While people on these boards are more than happy to help, we discourage people from asking for help on graded work without the instructor's permission, and we claim no repsonsibilty for any cheating or honor violations.

Feel free to PM me with any questions.

Good Luck,

Kermi3

Quzah.

3. Post your attempt(s), preferably within code tags: [code][/code].

4. Originally Posted by Dave_Sinkula
Post your attempt(s), preferably within code tags: [code][/code].
I don't even know where to start, I really could use some starting help.

Thanks!

5. Example 1

Enter N: 3
That looks like a good starting place to me.

Quzah.

6. Originally Posted by blustrk
I don't even know where to start, I really could use some starting help.
Code:
```#include <stdio.h>

int main(void)
{
return 0;
}```

7. Originally Posted by Dave_Sinkula
Code:
```#include <stdio.h>

int main(void)
{
return 0;
}```

8. Originally Posted by blustrk
Code:
```#include <stdio.h>

int main(void)
{
for(;;);
return 0;
}```
Modify to your heart's content. It might help if you read this.

9. Originally Posted by blustrk
Originally Posted by Dave_Sinkula
Code:
```#include <stdio.h>

int main(void)
{
return 0;
}```
Yup, that'd be one of the first things I'd add.

10. Seriously consider this following statement, as it will save you time in the long run:

If you aren't going to even try, don't bother. All you're doing is wasting everyone's time with your "do it for me" mentality. If you can't figure out this simple problem, stop trying to program. You don't want to bad enough. This is a ........ing easy problem. I hate to even use the word "problem", because it doesn't qualify as one.

I mean, you aren't making any attempt at all. If you have that little self esteem, where you can't post your code attempt, then get off of a public message board. If not esteem, then you're just too damn lazy. Too lazy to make any of the most minute attempts at this problem. If you're not lazy, then unfortunately for you, you're just too stupid. Too stupid to read a book or tutorial covering the simplest of concepts.

If it isn't any of those, put up or shut up, because you're wasting our time.

Quzah.

11. >>I've got four assignments due tomorrow, I did all but one because I'm just so confused. If anyone can help, it would mean the world to me.
Making the platform hmm .Nice way of asking others to do things for you.Anyways what other questions were?i guess adding two 1.integers 2.two doubles 3.floats