6) int i; double base ,power, product; i=0; base=3; power=4; product=0; while (++i<= power) product*=base; printf("%.21f
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
6) int i; double base ,power, product; i=0; base=3; power=4; product=0; while (++i<= power) product*=base; printf("%.21f
6) int i; double base ,power, product; i=0; base=3; power=4; product=0; while (++i<= power) product*=base; printf("%.21f to the power %.21f = %.1f", base ,power product) ; 7) int j; for(j=0; j>-1; j++) printf ("*"); 8) The following code should output the odd integers from 20 to 1: int x=20; do { printf("%d ",x); x=+2; }wihle (x => 0);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!