Director Manirathnam wants to direct a movie on a high budget.
So He was searching for a historical novels in the book shop. One of his friend P C Sreeram suggested him some of the best novels that can be converted into movie.
Based on his suggestion Manirathnam has collected Name, Author, and Genre details of those books.
Since the number of books is huge Manirathnam is seeking for your help in arranging the details collected by him in a particular format so that it will be helpful for him to move into story discussion.
Input:
First line of the input type string representing Name of the Book
Second line of the input type string representing Author of the Book
Third line of the input type string representing Genre of the Book
Output:
Print the details of the novels in the format expected by Manirathnam .
#include <stdio.h> union book { char title[100],writer[100],genre[100]; }; int main() { union book b1; scanf("%s",b1.title); printf("Title:%s\n",b1.title); scanf("%s",b1.writer); printf("Writer:%s\n",b1.writer); scanf("%s",b1.genre); printf("Genre:%s\n",b1.genre); return 0; }
INPUT_1:
PonniyinSelvan
KalkiKrishnamurthy
Historical
OUTPUT:
Title:PonniyinSelvan
Writer:KalkiKrishnamurthy
Genre:Historical
INPUT_2:
WingsofFire
AbdulKalam
Autobiography
OUTPUT:
Title:WingsofFire
Writer:AbdulKalam
Genre:Autobiography
Morae Q!
- Find how long will it take till the next fortune year from the current year.
- Find if it’s possible to distribute all the crayons into boxes and satisfy all the conditions.
- Compute sum of numbers using call by reference.
- Compute the amount of money to be handed over with conditions.
- Find the total number of beautiful triplets in the sequence.
- Find the total amount each worker has to pay individually.
- Find the minimum distance between any pair of equal elements in the array.
- Compute the maximum possible value of the given equation.
- Find the age of the student at the time of joining.
- Compute the total number of photos at each restaurant .
- Find the sum of digits of the number using Union datatype.
- Generate the details of the novels in the expected format.
- Sort the student details based on their names in ascending order.
- Find a way to move the king from current position to different square on chessboard.
- Find the time differences in the two different time zones.
- Identifying the greatest number with a numerator and denominator.
- Find the Minimum number of packages to supply all the bases.
- Tower of Hanoi, A puzzle.
- Compute the sum of array of elements using recursion method.
- Find the super digit of an integer using the rules.