Commit 8a6ff48c by makuks

Update Homework1.c

parent 8bb3d685
Showing with 9 additions and 4 deletions
...@@ -12,11 +12,16 @@ double y; ...@@ -12,11 +12,16 @@ double y;
double nominator; double nominator;
double denominator; double denominator;
printf("Please enter the starting value: "); do{
scanf("%lf", &A); printf("Please enter the starting value: ");
scanf("%lf", &A);
printf("Please enter the enter the stopping value: "); printf("Please enter the enter the stopping value: ");
scanf("%lf", &B); scanf("%lf", &B);
if(A > B){
printf("Please make sure that the starting value is bigger than stopping value.\n");
}while (A > B)
do{ do{
printf("Please enter the number of steps: "); printf("Please enter the number of steps: ");
scanf("%lf", &N); scanf("%lf", &N);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment