Event Details

Event Details 

Input Format: The first input is a string that corresponds to the name of the event. Assume the maximum length of the string as 50.
The second input is a string that corresponds to the type of event. Assume the maximum length of the string as 50.
The third input is an integer that corresponds to the number of people expected for the event.
The fourth input is a character that corresponds to Y/N telling whether the event is going to be a paid entry or not.
The fifth input is a double value that corresponds to the projected expenses (in lakhs) for the event.

Output Format:
The output should display the event details as given in the sample output.
All double values need to be displayed correctly to 1 decimal place
Sample Input and Output:
Enter the name of the event
Food Fest 2017
Enter the type of event
Public
Enter the number of people expected
5000
Is it a paid entry? (Type Y or N)
N
Enter the projected expenses (in lakhs) for this event
5.7
Event Name: Food Fest 2017
Event Type: Public
Expected Count: 5000
Paid Entry: N
Projected Expense: 5.7L


C Code:
#include<stdio.h>
int main()
{
    char e[100];
    char n[500];
    char t[500];
    int p;
    float ex;
    printf("Enter the name of the event\n");
    fgets(e,sizeof(e),stdin);
    printf("Enter the type of the event\n");
    fgets(n,sizeof(n),stdin);
    printf("Enter the number of people expected\n");
    scanf("%d",&p);
    printf("Is it a paid entry? (Type Y or N)\n");
    scanf("%s",t);
    printf("Enter the projected expenses (in lakhs) for this event\n");
    scanf("%f",&ex);
    printf("Event Name :");
    puts(e);
    printf("Event Type :");
    puts(n);
    printf("Expected Count : %d",p);
    printf("Paid Entry : %s",t);
    printf("Projected Expense : %.1fL",ex);
    return 0;

}