Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- void main()
- {
- int num, x, answer;
- printf("please insert number \n");
- scanf("%d", &num);
- printf("please insert power \n");
- scanf("%d", &x);
- for(x=0;x>0;x++)
- {
- answer=num*num*x;
- }
- printf("the answer is: %d", answer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement