English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1. Using scanf to read the limits for a loop

Write a program that asks the users for two intergers, and then uses these numbers as the limits for a for loop. The program simply counts between the two values, and displays the current number on the screen.

2. Adding a function

If we consider the value displayed in (1) above to be an angle in degrees, write a function that convert this value to radians and then displays this along side the value in degrees. To make use of pi, include "math.h" within your code, you can then use the pre-defined constant M_PI, M_2PI...etc

2007-10-20 12:15:51 · 4 answers · asked by VeVe 1 in Computers & Internet Programming & Design

4 answers

If you're not prepared to think about things or do a little research DROP THE COURSE!!!!!!!!!!!!!!!!!!

2007-10-20 12:50:11 · answer #1 · answered by Steve B 3 · 0 0

Did you just copy/paste from your notebook? First, try to understand what you have to do (because I sincerelly don't think you do in this case), then try to ellaborate something on your own, and finally if that didn't work ask for help here (or anywhere you feel confy). It'll take you less then waiting for someone to hand you the solution (which you can't verify btw). Think about it!

2007-10-20 12:25:51 · answer #2 · answered by agent-X 6 · 1 0

What do you need help with. Firstly, do you know how to use scanf?

2007-10-20 18:20:29 · answer #3 · answered by aaronw_1986 2 · 0 0

Sorry, we don't do homework here.

What exactly do you NOT understand?

2007-10-20 12:22:02 · answer #4 · answered by Kasey C 7 · 1 0

fedest.com, questions and answers