Write c program to read the text book number, Computer Engineering

Assignment Help:

With a C program to read the text book number, title, author and publisher into a structure and print these values.

# include

# include

void main()

{

struct book

{

int number; char title[20]; char author[20];

char publisher[20];

};

struct book text;

clrscr();

printf("\nEnter details about the text book");

printf("\n

printf("\nEnter Book Number :");

scanf("%d",&text.number);

");

printf("\nEnter Book Title :");

scanf("%s",&text.title);

printf("\nEnter Name of the author :");

scanf("%s",&text.author);

printf("\nEnter Name of the publisher :");

scanf("%s",&text.publisher);

printf("\n\n\nDetails about the Book");

printf("\n");

printf("\nBook Number = %d",text.number); printf("\nBook Title = %s",text.title);

printf("\nAuthor = %s",text.author); printf("\nPublisher = %s",text.publisher); getch(); }

 


Related Discussions:- Write c program to read the text book number

Avoiding local minima, Avoiding Local Minima: However the error rate o...

Avoiding Local Minima: However the error rate of multi-layered networks over a training set could be calculated as the number of mis-classified examples. So always keep in rem

What start bit and stop bit, What start bit and stop bit The first bit ...

What start bit and stop bit The first bit known as the Start bit is always a zero and it is used to show the beginning of the character The last bit is known as the stop bit

What is secondary storage systems, There are various limitations of primary...

There are various limitations of primary memory like limited capacity which is its not enough to store a very large volume of data and volatility which is when power is turned off

String, super string checker

super string checker

Find a connection factory, Why do I get an exception when trying to find a ...

Why do I get an exception when trying to find a connection factory? Ans) The exception is regularly something like java.io.InvalidClassException or java.lang.NoClassDefFoundErro

Explain sr latch with nand gate, Explain SR Latch with NAND Gate? SR La...

Explain SR Latch with NAND Gate? SR Latch has two useful states: Set state, when output Q=1 and Q'=0. Reset state, when output Q=0 and Q'=1.Output Qand Q' are normally

C program, In this problem you are given a board in which some of the eleme...

In this problem you are given a board in which some of the elements are placed as shown in diagram below. Each element represents a color. Fill the other elements in the board, suc

Define dynamic linking, Define dynamic linking.  Dynamic linking is sam...

Define dynamic linking.  Dynamic linking is same to dynamic loading, rather that loading being postponed unless execution time, linking is postponed. This feature is usually us

What is structured programming, What is structured programming? Structu...

What is structured programming? Structured Programming: means the collection of principles and practices that are directed toward developing right programs which are simple to

Decimal equivalent of hex number 1A53, What is the decimal equivalent of he...

What is the decimal equivalent of hex number 1A53 ? Ans. 6739 is the decimal equivalent of Hex Number 1A53. From Hex Number to Decimal Number conversion is shown below: 1

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd