- 6 Int I Double Base Power Product I 0 Base 3 Power 4 Product 0 While I Power Product Base Printf 21f 1 (94.12 KiB) Viewed 25 times
6) int i; double base ,power, product; i=0; base=3; power=4; product=0; while (++i<= power) product*=base; printf("%.21f
-
- Site Admin
- Posts: 899603
- 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);