Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[])
- {
- int m;
- int n;
- int i, a;
- do{
- printf(" Enter integer n= ");
- scanf(" %d", &n);
- printf("Enter integer m= ");
- scanf(" %d", &m);
- }while(isdigit(n) && isdigit(m));
- for(i=0;i<m;i++)
- {
- a=pow(i, n);
- printf(" %d + ", a);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement