#include<stdio.h>
main( )
{
  char name[3] ;
  float price[3] ;
  int pages[3], i ;
  
  printf ( "\nEnter names, prices and no. of pages of 3 books\n" ) ;
  for ( i = 0 ; i <= 2 ; i++ )
  {
     fflush(stdin); 
     scanf ( "%c %f %d", &name[i], &price[i], &pages[i] );
  }
  printf ( "\nAnd this is what you entered\n" ) ;
  
  for ( i = 0 ; i <= 2 ; i++ )
     printf ( "%c %0.2f %d\n", name[i], price[i], pages[i] );
  system("pause");
}

