Advertisement
sedran

Polinom

May 6th, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.     int degree, array[100],i;
  5.     scanf("%d",&degree);
  6.     for(i=degree; i>=0; i--) {
  7.         scanf("%d", &array[i]);
  8.     }
  9.    
  10.     for(i=degree; i>=0; i--) {
  11.         printf("%dx^%d ", array[i], i);
  12.     }
  13.     anykey();
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement