# Thread: Help me within an hour !

1. ## Help me within an hour !

Hello,
My name is Abdullah and I am a University student. We have started learning C Language in this semester but i am not so new in it. Thats why i dont know the language a lot.
I've got an assignment and i have to complete the assignment within next hour becuz then i will leave for the University where i have to submit these 6 simple programs (simple for those who know the language, not for me).

I dont have that much time to first understand and then make the programs so can anyone provide me with the coding of these 6 programs.

1. Input 2 integer numbers, store in variables named a & b, then switch their values. (for example if a=2, b=5 then a=5, b=2)

2. Input dimensions of a cylinder and find the area and volume of a cylinder.

{FORMULAS:
Area of cylinder : [2(pi)r(square) + 2(pi)rh]
Volume of cylinder : (pi)r(square)h}

3. Enter a number in miles and print its equivalent value in kilometers.

[ 1 Kilometer = 0.621 miles ]

4. Print even number series.

5. Print odd number series.

6. Generate the following output:

1 2 3 4 5 6
4 5 6 7 8 9
9 10 11 12 13 14
..................
100 ............

2. I bet you could do it after reading this: http://www.lysator.liu.se/c/bwk-tutor.html

3. Show us code that you actually tried. Otherwise you deserve to fail for not getting the work done when it was assigned.

EDIT:
You know, a person like you really made me upset today. I spent about an hour commenting a peer of mine's homework letting her know what she did wrong, why it was wrong, and how she can fix it. I send it back to her and today she sends it to me, hasn't changed one line of code tells me it is broken still and I should feel free to change the code. Nothing makes me more angry than someone trying to take advantage of another. I put extra work into helping her and she didn't even read the comments I bet.

I hope you fail for leaving your assignment to the last minute then asking someone else to do your work... what uni/teacher so I can email him/her and report you.

4. Code:
`puts( "1 2 3 4 5 6\n4 5 6 7 8 9\n9 10 11 12 13 14\n..................\n100 ............" );`
Ok, I've done one of them for you. You do the rest. I know I really shouldn't be doing your homework for you, but sometimes even I can't help myself.

Quzah.

5. Since the hour has been and gone, this pointless homework troll can slip back underneath it's bridge to await other passers by to sponge off.

Popular pages Recent additions