Commit 8a6ff48c by makuks

Update Homework1.c

parent 8bb3d685
Showing with 9 additions and 4 deletions
......@@ -12,11 +12,16 @@ double y;
double nominator;
double denominator;
printf("Please enter the starting value: ");
scanf("%lf", &A);
do{
printf("Please enter the starting value: ");
scanf("%lf", &A);
printf("Please enter the enter the stopping value: ");
scanf("%lf", &B);
printf("Please enter the enter the stopping value: ");
scanf("%lf", &B);
if(A > B){
printf("Please make sure that the starting value is bigger than stopping value.\n");
}while (A > B)
do{
printf("Please enter the number of steps: ");
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