Question: 3 . 1 0 Identify and correct the errors in each of the following. [ Note: There may be more than one error in each

3.10 Identify and correct the errors in each of the following. [Note: There may be more than one error in each piece of code.] a) if (age >=65); { puts("Age is greater than or equal to 65"); } else { puts("Age is less than 65"); }1// raise x to the y power 2 #include 34 int main(void){5 printf("%s", "Enter first integer: "); 6 int x =0; 7 scanf("%d", &x); // read value for x from user 8 printf("%s", "Enter second integer: "); 9 int y =0; 10 scanf("%d", &y); // read value for y from user 1112 int i =1; 13 int power =1; // set power 1415 while (i <= y){// loop while i is less than or equal to y 16 power *= x; // multiply power by x 17++i; // increment i 18}// end while 1920 printf("%d ", power); // display power 21}// end main function Exercises 123 b) int x =1; int total; while (x <=10){ total += x; ++x; } c) While (x <=100) total += x; ++x; d) while (y >0){ printf("%d ", y); ++y; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!