#include<iostream.h>
#include<conio.h>
struct book
{
int b_num;
char a_name[30],publish[40];
float rate;
};
struct book z;
int main()
{
clrscr();
cout<<"\n enter the year of publication:" ;
cin>>z.b_num ;
cout<<"\n enter the name of the author:" ;
cin>>z.a_name ;
cout<<"\n enter the name of the publisher:" ;
cin>>z.publish ;
cout<<"\n enter the price of the book:" ;
cin>>z.rate ;
cout<<"\n...................." ;
cout<<"\n Book Information" ;
cout<<"\n...................." ;
cout<<"\n Book publish in="<<z.b_num ;
cout<<"\n Author name="<<z.a_name ;
cout<<"\n Publisher="<<z.publish ;
cout<<"\n price of the book="<<z.rate ;
cout<<"\n...................." ;
getch();
return(0) ;
}
#include<conio.h>
struct book
{
int b_num;
char a_name[30],publish[40];
float rate;
};
struct book z;
int main()
{
clrscr();
cout<<"\n enter the year of publication:" ;
cin>>z.b_num ;
cout<<"\n enter the name of the author:" ;
cin>>z.a_name ;
cout<<"\n enter the name of the publisher:" ;
cin>>z.publish ;
cout<<"\n enter the price of the book:" ;
cin>>z.rate ;
cout<<"\n...................." ;
cout<<"\n Book Information" ;
cout<<"\n...................." ;
cout<<"\n Book publish in="<<z.b_num ;
cout<<"\n Author name="<<z.a_name ;
cout<<"\n Publisher="<<z.publish ;
cout<<"\n price of the book="<<z.rate ;
cout<<"\n...................." ;
getch();
return(0) ;
}
No comments:
Post a Comment