Ad Code

Responsive Advertisement

1173 - Array fill I

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function

#include<stdio.h>

int main(){

  int i, x[10], j;

  scanf("%d", &j);

  for(i=0; i<10; i++, j+=j){

    x[i]=j;

    printf("N[%d] = %d\n",i, x[i]);

  }



  return 0;

}




Post a Comment

0 Comments