You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coldplay Tickets Problem
Problem Statement: You are going to the Coldplay concert with N friends and buying tickets for everyone. Each ticket costs 5000 INR. Calculate the total amount to pay for all tickets, including your own.
Input:
A single integer N (number of friends).
Output:
Total cost in INR for N + 1 tickets.
Constraints:
1
≤
𝑁
≤
5
1≤N≤5
Example:
Input: 1
Output: 10000
Input: 5
Output: 30000
0 commit comments