Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- double x;
- x = 1;
- while (x<4)
- {
- printf("%f ", pow(1,x));
- x++;
- }
- x = 1;
- printf("\n");
- while (x<4)
- {
- printf("%f ", pow(2,x));
- x++;
- }
- x = 1;
- printf("\n");
- while (x<4)
- {
- printf("%f ", pow(3,x));
- x++;
- }
- printf("\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement