[{"id":"Hello_World","title":"Hello World","order":"0","problemStatement":"We all know that the input and output functionality forms the basics of any programming language. As a universal practice, let us begin with this - Write a program to print \"Hello World!\".","examples":"[{\"id\":\"1\",\"inputText\":\"Hello World!\",\"outputText\":\"Hello World!\"},{\"id\":\"2\",\"inputText\":\"Hello World!\",\"outputText\":\"Hello World!\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"new_line","title":"Print the output with a new line","order":"0","problemStatement":"Write a C program to print the below-given output. SAMPLE OUTPUT: Hello! Welcome to Face!\n","examples":"[{\"id\":\"1\",\"inputText\":\"Hello!\\nWelcome to Face!\",\"outputText\":\"Hello!\\nWelcome to Face!\"},{\"id\":\"2\",\"inputText\":\"Hello!\\nWelcome to Face!\",\"outputText\":\"Hello!\\nWelcome to Face!\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Integer","title":"Integer","order":"0","problemStatement":"Write a program to get an integer from the user and display it. INPUT & OUTPUT FORMAT: Input consist of 1 integer. Output consist of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"56\",\"outputText\":\"56\"},{\"id\":\"2\",\"inputText\":\"8\",\"outputText\":\"8\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Floating_Point","title":"Floating Point","order":"0","problemStatement":"Floating Point","examples":"[{\"id\":\"1\",\"inputText\":\"23.115\",\"outputText\":\"23.115000\"},{\"id\":\"2\",\"inputText\":\"8\",\"outputText\":\"8.000000\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Character","title":"Character","order":"0","problemStatement":"Write a program to get a character value from the user and display it. INPUT & OUTPUT FORMAT: Input consists of 1 character. Output consists of 1 character.","examples":"[{\"id\":\"1\",\"inputText\":\"d\",\"outputText\":\"d\"},{\"id\":\"2\",\"inputText\":\"g\",\"outputText\":\"g\"},{\"id\":\"3\",\"inputText\":\"f\",\"outputText\":\"f\"},{\"id\":\"4\",\"inputText\":\"h\",\"outputText\":\"h\"},{\"id\":\"5\",\"inputText\":\"j\",\"outputText\":\"j\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Round_Off","title":"Round Off","order":"0","problemStatement":"Write a C program to get a float value from the user and display it in the below-mentioned format. HINT: Use ceil() and floor() functions from header file. INPUT & OUTPUT FORMAT: Input consists of one float value. Output consists of one integer, its highest round off value and its lowest round off value.","examples":"[{\"id\":\"1\",\"inputText\":\"54.5\",\"outputText\":\"54\\n55.0\\n54.0\"},{\"id\":\"2\",\"inputText\":\"54.5\",\"outputText\":\"54\\n55.0\\n54.0\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Print_ASCII_Values","title":"Print ASCII Values","order":"0","problemStatement":"Write a C program to generate the equivalent ASCII value for a given character.","examples":"[{\"id\":\"1\",\"inputText\":\"A\",\"outputText\":\"65\"},{\"id\":\"2\",\"inputText\":\"a\",\"outputText\":\"97\"},{\"id\":\"3\",\"inputText\":\"b\",\"outputText\":\"98\"},{\"id\":\"4\",\"inputText\":\"c\",\"outputText\":\"99\"},{\"id\":\"5\",\"inputText\":\"d\",\"outputText\":\"100\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Tsunami_Report","title":"Tsunami Report","order":"0","problemStatement":"In Japan, there was a very huge Tsunami. Millions and millions worth buildings and property were destroyed. Many people lost their lives while some of them were injured and few were safe. A news reporter arrives at the spot to take the current survey regarding the situation of the people alive, dead and injured. He wanted to publish it in the newspaper and reach out to other countries asking to help the affected people. Can you please help him in this noble cause by writing a program to generate the newspaper report ? \n\nINPUT & OUTPUT FORMAT: Input consists of three integers corresponding to the number of people dead, injured and those who are still alive and safe. Refer sample input and output for formatting specifications.","examples":"[{\"id\":\"1\",\"inputText\":\"2000\\n\\n3000\\n\\n10000\",\"outputText\":\"1)Dead : 2000\\n\\n2)Injured : 3000\\n\\n3)Safe : 10000\\n\\nPlease help the people who are suffering!!!\"},{\"id\":\"2\",\"inputText\":\"2000\\n\\n3000\\n\\n10000\",\"outputText\":\"1)Dead : 2000\\n\\n2)Injured : 3000\\n\\n3)Safe : 10000\\n\\nPlease help the people who are suffering!!!\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Input_Output","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Boating","title":"Boating","order":"0","problemStatement":"You went on a tour to Ooty with your friends. As a part of the tour, you went boating with them. For the boat to remain stable, the number of people on one boat is restricted based on the weight of the people. You find that the boatman who is sailing your boat is so much greedy of money. For earning more, he takes too many people to travel in the boat at a time. So you want to check how many people can travel in the boat at a time so that the boat will not drown. Calculate the weight by considering the number of adults and number of children. Assume that an adult weighs 75 kg and children weigh 30 kg each. If the weight is normal, display Boat is stable, else display Boat will drown. INPUT & OUTPUT FORMAT: Input consists of 3 integers. First input corresponds to the weight that the boat can handle. Second input corresponds to the number of adults. Third input corresponds to the number of children.","examples":"[{\"id\":\"1\",\"inputText\":\"340\\n\\n2\\n\\n3\",\"outputText\":\"Boat is stable\"},{\"id\":\"2\",\"inputText\":\"600\\n7\\n4\",\"outputText\":\"Boat will drown\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Car_Race","title":"Car Race","order":"0","problemStatement":"Janu is very much interested in watching car racing. Once while doing so, this is what she observes that Car 1 is coming so fast. The road on which the car comes is divided into three. There are three roads A, B, and C. Each road is given some number. Before the car reaches the end of the road, Janu wants to know the road in which the car will travel. Help her in finding in which road the car will travel? INPUT & OUTPUT FORMAT: Input consists of 4 integers. First input corresponds to the number of road A. Second input corresponds to the number of road B. Third input corresponds to the number of road C. Fourth input corresponds to the number of cars. If the car cannot travel on any road, display \u201cNo path exist\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"243\\n\\n136\\n\\n567\\n\\n17\",\"outputText\":\"Car 1 goes into road B\"},{\"id\":\"2\",\"inputText\":\"77\\n55\\n67\\n9\",\"outputText\":\"No path exist\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Electricity_Bill","title":"Electricity Bill","order":"0","problemStatement":"Electricity board has decided to charge rupees based on the units consumed by a particular home. If the units consumed is less than or equal to 200, the cost for one unit is 0.5. If the unit is less than or equal to 400, the cost for one unit is 0.65 and Rs.100 extra charge. If the unit is less than or equal to 600, the cost for one unit is 0.80 and Rs.200 extra charge. If the unit is greater than 600 the cost for one unit is 1.25 and Rs.425 extra charge. You need to now calculate the electricity bill based on the units consumed (given input). INPUT & OUTPUT FORMAT: Input consists of one integer. This corresponds to the units consumed. The output consists of one integer. This corresponds to the electricity bill in rupees.","examples":"[{\"id\":\"1\",\"inputText\":\"200\",\"outputText\":\"Rs.100\"},{\"id\":\"2\",\"inputText\":\"250\",\"outputText\":\"Rs.263\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"g_o_three","title":"Greatest of three numbers","order":"0","problemStatement":"Write a C program to find the greatest among the three given numbers. INPUT FORMAT: Input consists of 3 integers","examples":"[{\"id\":\"1\",\"inputText\":\"7\\n9\\n8\",\"outputText\":\"9\"},{\"id\":\"2\",\"inputText\":\"8\\n5\\n6\",\"outputText\":\"8\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Quadrants1","title":"Quadrants","order":"0","problemStatement":"Write a C program to find the quadrant in which the given x and y coordinates are present in a graph. If it is in 1st Quadrant, then display Ist Quadrant, If it is in 2nd Quadrant, then display IInd Quadrant, If it is in 3rd Quadrant, then display IIIrd Quadrant, If it is in 4th Quadrant, then display IVth Quadrant and If it is in center display Origin. INPUT FORMAT: Input consists of 2 integers. First input corresponds to x coordinate. Second input corresponds to y coordinate.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n6\",\"outputText\":\"Ist Quadrant\"},{\"id\":\"2\",\"inputText\":\"-5\\n6\",\"outputText\":\"IInd Quadrant\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"gws","title":"Game with shapes","order":"0","problemStatement":"Karl loves to play with shapes and his sister is interested in Mathematics. They got a wooden box which is square in shape with length x cm and a round bangle with radius r cm and decided to play with it. They started playing and his sister asked him to find whether the circle will fit into the square. Help Karl to find whether the circle will fit into a square or not. If the circle fits, display \u201ccircle can be inside a Square\u201d else display \u201ccircle cannot be inside a Square\u201d. INPUT FORMAT: Input consist of 2 integers. First input corresponds to the radius of a circle. Second input corresponds to the length of a square.","examples":"[{\"id\":\"1\",\"inputText\":\"77\\n65\",\"outputText\":\"circle cannot be inside a Square\"},{\"id\":\"2\",\"inputText\":\"28\\n56\",\"outputText\":\"circle can be inside a Square\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Cricket","title":"Cricket","order":"0","problemStatement":"Tom is crazy about cricket. He was watching India vs. Australia World cup final match. Australia won the toss and elected to bat first. They finished batting with a score of X. Next, India started to bat and scored Y runs in N number of balls. As Tom is very crazy, he wants to calculate the run rate and check whether there is a probability for India to win or not. Help him calculate the run-rate and check the probability. INPUT FORMAT & OUTPUT FORMAT: Input consists of 4 integers. First input corresponds to the total number of balls. Second input corresponds to the total number of runs. Third input corresponds to the number of runs scored. Fourth input corresponds to the number of balls bowled. First output corresponds to the total number of overs. Second output corresponds to the total number of overs finished. Third output corresponds to the current run rate. Fourth output corresponds to total run rate. Overs: 50 Overs finished: 7.3 Current Run rate: 10.7 Total Run rate: 7.5 Eligible to Win","examples":"[{\"id\":\"1\",\"inputText\":\"300\\n\\n375\\n\\n78\\n\\n45\",\"outputText\":\"50\\n\\n7.3\\n\\n10.7\\n\\n7.5\\n\\nEligible to Win\"},{\"id\":\"2\",\"inputText\":\"300\\n268\\n23\\n45\",\"outputText\":\"50\\n7.3\\n3.2\\n5.4\\nNot Eligible to Win\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Calendar","title":"Calendar","order":"0","problemStatement":"Damu and Ram are friends. They felt very bored and decided to play a game with calendar and number of days. Damu will give the month and the year as input, and Ram has to find out the number of days in that month. Write a C program using switch case to help Ram find the answer. You should check whether the given year is a leap year. If it is a leap year, it will have 29 days in February.(Use only switch case and implement the \u201cFall Through\u201d concept). INPUT FORMAT: Input consists of 1 integer.\n\nSAMPLE INPUT:","examples":"[{\"id\":\"1\",\"inputText\":\"3\\n1996\",\"outputText\":\"Number of days is 31\"},{\"id\":\"2\",\"inputText\":\"2\\n2001\",\"outputText\":\"Number of days is 28\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"ASCIIvalues","title":"ASCII values","order":"0","problemStatement":"Write a C program to display the ASCII value of vowels for both upper case and lower case letters. If the given character is not a vowel, display \"Not a vowel\" and If it is a vowel then display the \"ASCII value of the vowel\". INPUT FORMAT: Input consists of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"A\",\"outputText\":\"ASCII of A is 65\"},{\"id\":\"2\",\"inputText\":\"u\",\"outputText\":\"ASCII of u is 117\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Paintings","title":"Paintings","order":"0","problemStatement":"A wall is of length L and breadth B. Raj is trying to fit two rectangular paintings in it. He wants to fit these paintings on the wall such that they do not overlap on each other or they should not occupy space outside the area of the wall. He also knows the length and breadth of both the paintings. Help him in finding whether the two paintings can fit onto the wall properly or not. INPUT & OUTPUT FORMAT: Input consists of 6 integers. First and second input corresponds to the length and breadth of the wall. Third and fourth input corresponds to the length and breadth of the first painting. Fifth and sixth input corresponds to the length and breadth of the second painting. If both the paintings can be fixed on the wall, display \u201cRaj can fix both painting\u201d or display \u201cRaj cannot fix both painting\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"8\\n\\n8\\n\\n3\\n\\n2\\n\\n4\\n\\n4\",\"outputText\":\"Raj can fix both painting\"},{\"id\":\"2\",\"inputText\":\"8\\n2\\n3\\n4\\n5\\n9\",\"outputText\":\"Raj cannot fix both painting\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"SavingsandExpenses","title":"Savings and Expenses","order":"0","problemStatement":"Ramu after finishing his degree joined a company in Bangalore. His manager has told him that he will get an increment if he works hard. As he belongs to a middle-class family, he wants to plan the budget according to his salary. He stays in a hostel. His expenses are hostel fees, bank loan interest. He wants to find out whether he can save any money or he wants to work hard or his salary will be able to manage his expenses alone. Help him in calculating the budget. INPUT & OUTPUT FORMAT: Input consists of 5 integers. First input corresponds to salary, second input corresponds to the amount he pays to the bank, third input corresponds to hostel fees, fourth input corresponds to food expenses and fifth input corresponds to the amount he sends to his parents. If he can save money out of his expenses display \u201cHe can save the money\u201d or if he can manage his expenses alone display \u201cHe can manage the expenses\u201d or else display \u201cHe wants to work hard\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"10000\\n\\n5000\\n\\n4000\\n\\n1500\\n\\n5000\",\"outputText\":\"He has to work hard\"},{\"id\":\"2\",\"inputText\":\"25000\\n5000\\n4000\\n1500\\n5000\",\"outputText\":\"He can save the money\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Onlineshopping","title":"Online shopping","order":"0","problemStatement":"Arun wants to buy a shirt. As he is very lazy, he decided to buy the shirt online. He chooses a shirt in Flipkart and is surprised to see the same shirt in Amazon and Snapdeal as well. So he decided to buy the shirt from the website which offers it at the least price. The price of the shirt, discount % and the shipping charges of all three websites have been given as input. Help him in calculating the price of the shirt in each website and decide which website has the lowest price. INPUT & OUTPUT FORMAT: Input consist of 9 integers. First three input corresponds to Flipkart details such as the amount of the shirt, discount offered and shipping charges. Next three input corresponds to Snapdeal details such as the amount of shirt, discount offered and shipping charge. Last three input corresponds to amazon details such as the amount of shirt, discount offered and shipping charge.","examples":"[{\"id\":\"1\",\"inputText\":\"1000\\n\\n50\\n\\n50\\n\\n900\\n\\n50\\n\\n70\\n\\n800\\n\\n10\\n\\n200\",\"outputText\":\"In Flipkart: Rs.550\\n\\nIn Snapdeal: Rs.520\\n\\nIn Amazon: Rs.920\\n\\nHe will prefer Snapdeal\"},{\"id\":\"2\",\"inputText\":\"1000\\n\\n50\\n\\n50\\n\\n900\\n\\n50\\n\\n70\\n\\n800\\n\\n10\\n\\n200\",\"outputText\":\"In Flipkart: Rs.550\\n\\nIn Snapdeal: Rs.520\\n\\nIn Amazon: Rs.920\\n\\nHe will prefer Snapdeal\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"BMI","title":"BMI","order":"0","problemStatement":"You are so much interested in making your body fit and hence you wanted to go to the gym daily. But your mother did not like the idea. She says she will let you go if your weight is not normal. So you decided to calculate your Body Mass Index. Write a C program to calculate BMI for your weight and height. Enter your height in centimeters and weight in kilograms. INPUT & OUTPUT FORMAT: Input consists of 2 float values. First input corresponds to your weight. Second input corresponds to your height. If you are underweight, display \u201cYou are underweight. Have an apple daily.\u201d If you are normal, display \u201cYou are normal. Go for a walk every day and maintain it.\u201d If you are overweight, display \u201cYou are overweight. Go to the gym daily.\u201d If you have obesity, display \u201cYou are obese. You need to see a doctor.\u201d","examples":"[{\"id\":\"1\",\"inputText\":\"75\\n\\n175\",\"outputText\":\"You are normal. Go walking daily and maintain it.\"},{\"id\":\"2\",\"inputText\":\"100\\n250\",\"outputText\":\"You are underweight. Have an apple daily.\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Tank","title":"Tank","order":"0","problemStatement":"Bala has a cylindrical tank in which he has to fill water in certain hours. For every one hour, his house will receive N liters of water from the corporation. Find out whether he will be able to fill the tank with water in X hours. The radius and height of the cylinder are given as the input. INPUT & OUTPUT FORMAT: Input consists of 4 float values. First input corresponds to the radius of the tank. Second input corresponds to the height of the tank. Third input corresponds to the amount of water the tank receives every hour. Fourth input corresponds to the total number of hours the tank receives water.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n7\\n\\n100\\n\\n6\",\"outputText\":\"The tank can be filled within 6.0 hours\"},{\"id\":\"2\",\"inputText\":\"8\\n5\\n50\\n3\",\"outputText\":\"The tank cannot be filled within 3.0 hours\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"TreasureFinder","title":"Treasure Finder","order":"0","problemStatement":"Lucy and Tina are close friends. They both are studying in the same school. Now they are on their summer vacation. As they are bored, they ask their parents to take them to an exhibition. There Lucy and Tina play a game. In this game, there are three boxes with some number written on their top. There is a treasure in one of the three boxes and the treasure is present in the box with the second largest number on its top. Also, to open the box, they need to decode the correct code of this box. The clue given to them to find the code is that it is the largest number which divides all the three given numbers. So, now help Lucy and Tina to decode the code. INPUT & OUTPUT PROGRAM: Input consists of three integers. First input corresponds to the number of the first box. Second input corresponds to the number of the second box. Third input corresponds to the number of the third box.","examples":"[{\"id\":\"1\",\"inputText\":\"2\\n\\n4\\n\\n6\",\"outputText\":\"The treasure is in the box which has number 4.\\nThe code to open the box is 2.\"},{\"id\":\"2\",\"inputText\":\"7\\n49\\n14\",\"outputText\":\"The treasure is in the box which has number 14.\\nThe code to open the box is 7.\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Discount","title":"Discount","order":"0","problemStatement":"Chris is going to celebrate his birthday in January. His father wants to buy a new dress for his son. Also as Christmas is approaching, he wants to buy a new dress for Christmas as well. As all the textile showrooms offer a discount in the month of December, his father decides to buy a dress for Chris birthday in December itself. Before that, he wants to know how much discount was given in each month. In the first month of the year, they offered a 20% discount. In the third and fourth month, they offered a 10% discount. In the sixth and seventh month, they offered a 75% discount. In the tenth and eleventh month, they offered a 30% discount. In the twelfth month, they offered a 35% discount. Implement this program using switch case. Note: Use Fall through concept. INPUT & OUTPUT PROGRAM: Input consists of 2 integers. First input corresponds to the rate of dress. Second input corresponds to the month in which they will shop. If an invalid month is given, it should display \u201cInvalid Month\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"1000\\n1\",\"outputText\":\"Chris father needs to pay Rs.800.00.\"},{\"id\":\"2\",\"inputText\":\"800\\n5\",\"outputText\":\"Chris father needs to pay Rs.800.00.\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"StationaryShop","title":"Stationary Shop","order":"0","problemStatement":"Raj starts a new stationery shop. He wants to calculate the number of items that are sold and the number of items that are remaining in the stock. Whenever a customer asks for them, he will be able to quickly check whether the item is already sold or available. If the item is not available, it should display \"Out of stock\". If it is available, it should display the remaining number of items available and the total cost that should be paid by a customer. If the number of items asked by the customer is greater than the items available, it should display the number of items currently available. For example, if a customer asks 8 scales and only 3 scales are available, display \"Only 3 scale are available\". INPUT & OUTPUT FORMAT: Input consists of 1 string and 3 integers. First input corresponds to the item name. Second input corresponds to the number of items available in the stock. Third input corresponds to the amount of one item. Fourth input corresponds to the number of items asked by the customer.","examples":"[{\"id\":\"1\",\"inputText\":\"pencil\\n\\n10\\n\\n15\\n\\n5\",\"outputText\":\"The amount for 5 pencil is 75\\n\\nRemaining number of pencils present in the stock: 5\"},{\"id\":\"2\",\"inputText\":\"pen\\n0\\n10\\n1\",\"outputText\":\"Out of stock\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making_2","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-1","title":"Series-1","order":"0","problemStatement":"Write a C program to generate the following series 7, 5, 8, 6, 9\u2026.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"7 5 8 6 9\"},{\"id\":\"2\",\"inputText\":\"10\",\"outputText\":\"7 5 8 6 9 7 10 8 11 9\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-2","title":"Series-2","order":"0","problemStatement":"Write a C program to generate the following series 1, 2, 3, 5, 8\u2026.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"1 2 3 5 8\"},{\"id\":\"2\",\"inputText\":\"10\",\"outputText\":\"1 2 3 5 8 13 21 34 55 89\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-3","title":"Series-3","order":"0","problemStatement":"Write a C program to generate the following series 6, 9, 14, 21, 30\u2026.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"6 9 14 21 30\"},{\"id\":\"2\",\"inputText\":\"29\",\"outputText\":\"6 9 14 21 30 41 54 69 86 105 126 149 174 201 230 261 294 329 366 405 446 489 534 581 630 681 734 789 846\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-4","title":"Series-4","order":"0","problemStatement":"Write a C program to generate the following series 0, 3, 8, 15, 24\u2026.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"0 3 8 15 24\"},{\"id\":\"2\",\"inputText\":\"11\",\"outputText\":\"0 3 8 15 24 35 48 63 80 99 120\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-5","title":"Series-5","order":"0","problemStatement":"Write a C program to generate the following series 2, 4, 7, 12, 21\u2026..","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"2 4 7 12 21\"},{\"id\":\"2\",\"inputText\":\"4\",\"outputText\":\"2 4 7 12\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-6","title":"Series-6","order":"0","problemStatement":"Write a C program to generate the following series 1, 4, 27, 256\u2026. SAMPLE INPUT & OUTPUT: Enter n value 5 1 4 27 256 3125\nSAMPLE INPUT & OUTPUT:","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"1 4 27 256 3125\"},{\"id\":\"2\",\"inputText\":\"6\",\"outputText\":\"1 4 27 256 3125 46656\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-7","title":"Series-7","order":"0","problemStatement":"Write a C program to generate the following series 10, 5, 60, 15, 110\u2026.\nSAMPLE INPUT & OUTPUT:\n\nEnter n value\n\n5\n\n10 5 60 15 110","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"10 5 60 15 110\"},{\"id\":\"2\",\"inputText\":\"10\",\"outputText\":\"10 5 60 15 110 25 160 35 210 45\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-8","title":"Series-8","order":"0","problemStatement":"Write a C program to generate the following series 101, 103, 107, 109\u2026.\nSAMPLE INPUT & OUTPUT:\n\nEnter n value\n\n8\n\n101 103 107 109 113 127 131 137","examples":"[{\"id\":\"1\",\"inputText\":\"8\",\"outputText\":\"101 103 107 109 113 127 131 137\"},{\"id\":\"2\",\"inputText\":\"19\",\"outputText\":\"101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-9","title":"Series-9","order":"0","problemStatement":"Write a C program to generate the following series 1, 4, 27, 16, 125\u2026.\nSAMPLE INPUT & OUTPUT:\n\nEnter n value\n\n5\n\n1 4 27 16 125","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"1 4 27 16 125\"},{\"id\":\"2\",\"inputText\":\"14\",\"outputText\":\"1 4 27 16 125 36 343 64 729 100 1331 144 2197 196\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Series-10","title":"Series-10","order":"0","problemStatement":"Write a C program to generate the following series 0, 2, 6, 12, 20\u2026..\nSAMPLE INPUT & OUTPUT:\n\nEnter n value\n\n5\n\n0 2 6 12 20","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"0 2 6 12 20\"},{\"id\":\"2\",\"inputText\":\"1\",\"outputText\":\"0\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Series","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"SumRange","title":"Sum of a Range","order":"0","problemStatement":"Write a C program to print the sum of a given range of numbers. Note: Use while loop INPUT & OUTPUT FORMAT: Input consists of 2 integers. First input corresponds to the minimum value of the range. Second input corresponds to the maximum value of the range. The output is an integer which corresponds to the sum of range.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n10\",\"outputText\":\"45\"},{\"id\":\"2\",\"inputText\":\"25\\n55\",\"outputText\":\"1240\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"SumNumbers","title":"Sum of a Range","order":"0","problemStatement":"Write a C program to print the sum of the given numbers. The values must be scanned until the user enters -1 as value. Note: Use a do-while loop. INPUT & OUTPUT FORMAT: Input consists of a list of integers. The output consists of the sum of the given integers.","examples":"[{\"id\":\"1\",\"inputText\":\"1\\n2\\n3\\n4\\n-1\",\"outputText\":\"10\"},{\"id\":\"2\",\"inputText\":\"5\\n8\\n3\\n4\\n6\\n2\\n-1\",\"outputText\":\"28\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"EvenOdd","title":"Even & Odd","order":"0","problemStatement":"Write a C program to find the sum and average of even and odd numbers from the given number list. INPUT & OUTPUT FORMAT: Input consists of a list of integers. Average of numbers must have one floating value. The output consists of two integers and two floating point values.","examples":"[{\"id\":\"1\",\"inputText\":\"1\\n\\n2\\n\\n3\\n\\n4\\n\\n-1\",\"outputText\":\"6\\n\\n4\\n\\n3.00\\n\\n2.00\"},{\"id\":\"2\",\"inputText\":\"23\\n67\\n94\\n68\\n180\\n230\\n155\\n-1\",\"outputText\":\"572\\n245\\n143.00\\n81.67\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Handshakes","title":"Handshakes","order":"0","problemStatement":"It was Raj's first day at school. His teacher Anu asked the students to meet every other student in the class and introduce about themselves. The teacher asked them to handshake with each other when they meet. If there are n number of students in the class then find the total number of handshakes made by the students. INPUT & OUTPUT FORMAT: Input consists of 1 integer. First input corresponds to the total number of students. The output consists of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"15\",\"outputText\":\"105\"},{\"id\":\"2\",\"inputText\":\"10\",\"outputText\":\"45\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Factorial1","title":"Factorial1","order":"0","problemStatement":"Write a C program to find the factorial of a given number. INPUT & OUTPUT FORMAT: Input consists of 1 integer. The output consists of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"120\"},{\"id\":\"2\",\"inputText\":\"7\",\"outputText\":\"5040\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"FibonacciNumber","title":"Fibonacci Number","order":"0","problemStatement":"Write a C program to find whether the given number is a Fibonacci number. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If it is a Fibonacci number display \u201cFibonacci Number\u201d or display \u201cNot Fibonacci Number\u201d. The output consists of 1 integer.\n","examples":"[{\"id\":\"1\",\"inputText\":\"3\",\"outputText\":\"Fibonacci Number\"},{\"id\":\"2\",\"inputText\":\"122\",\"outputText\":\"Not Fibonacci Number\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Multiplicationtable","title":"Multiplication table","order":"0","problemStatement":"Write a C program to find the multiplication tables of a given number. INPUT & OUTPUT FORMAT: Input consists of 2 integers. First input corresponds to the number for which the multiplication tables have to be generated. Second input corresponds to the number until which the tables need to be generated.","examples":"[{\"id\":\"1\",\"inputText\":\"1\\n5\",\"outputText\":\"1 * 1 = 1\\n1 * 2 = 2\\n1 * 3 = 3\\n1 * 4 = 4\\n1 * 5 = 5\"},{\"id\":\"2\",\"inputText\":\"15\\n15\",\"outputText\":\"15 * 1 = 15\\n15 * 2 = 30\\n15 * 3 = 45\\n15 * 4 = 60\\n15 * 5 = 75\\n15 * 6 = 90\\n15 * 7 = 105\\n15 * 8 = 120\\n15 * 9 = 135\\n15 * 10 = 150\\n15 * 11 = 165\\n15 * 12 = 180\\n15 * 13 = 195\\n15 * 14 = 210\\n15 * 15 = 225\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"DollarsCents","title":"Dollars & Cents","order":"0","problemStatement":"Write a C program to add two dollars and cents. INPUT & OUTPUT FORMAT: Input consists of 4 integers. First two inputs correspond to the value of the first dollar and cent. Next two inputs correspond to the value of the second dollar and cent. Output should print the sum of dollar and cent.","examples":"[{\"id\":\"1\",\"inputText\":\"30\\n\\n10\\n\\n140\\n\\n99\",\"outputText\":\"171\\n\\n9\"},{\"id\":\"2\",\"inputText\":\"99\\n99\\n99\\n99\",\"outputText\":\"199\\n98\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Chalk","title":"Chalk","order":"0","problemStatement":"Raj's teacher Anu uses chalk to write on the board. When the chalk reduces to 1\/squareroot(n) of its original size, she keeps the chalk aside as it gets too small. She joins all the small pieces of the chalk and makes another chalk of the same size and uses it. If she uses one chalk each day, in how many days will she use the given n number of chalks? INPUT & OUTPUT FORMAT: Input consists of 1 integer which corresponds to the number of chalks given. Output corresponds to the number of days in which the given number of chalks will be used.","examples":"[{\"id\":\"1\",\"inputText\":\"16\",\"outputText\":\"21\"},{\"id\":\"2\",\"inputText\":\"36\",\"outputText\":\"43\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"HarshardNumber","title":"Harshard Number","order":"0","problemStatement":"Write a C program to find whether the given number is a Harshad number or not. Note that Harshard number is an integer that is divisible by the sum of its digits. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If the given number is a Harshad Number, display \"Harshad Number\" or display \"Not Harshad Number\".","examples":"[{\"id\":\"1\",\"inputText\":\"1729\",\"outputText\":\"Harshard Number\"},{\"id\":\"2\",\"inputText\":\"64\",\"outputText\":\"Not Harshard Number\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"AbundantNumber","title":"Abundant Number","order":"0","problemStatement":"Write a C program to find whether the given number is an Abundant number or not. Note: An abundant number is a number for which the sum of its proper divisors is greater than the number itself. For example, integer 12 is an abundant number. The divisors of 12 are 1, 2, 3, 4 and 6. The sum of divisors of 12 is 16. As 12 < 16, it is an abundant number. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If it is an Abundant number display \u201cAbundant Number\u201d or display \u201cNot Abundant Number\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"6\",\"outputText\":\"Not Abundant Number\"},{\"id\":\"2\",\"inputText\":\"14770\",\"outputText\":\"Abundant Number\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Friendlypair","title":"Friendly pair","order":"0","problemStatement":"Write a C program to find whether the given numbers are Friendly Pair or not. Friendly pair is two or more numbers with a common abundancy index i.e the ratio between the sum of divisors of a number and the number itself. For example, 6 and 28 are a Friendly pair as (Sum of divisors of 6)\/6 = (Sum of divisors of 28)\/28 Note: Don't use unnecessary sentences in input or output. INPUT & OUTPUT FORMAT: Input consists of 2 integers. The first integer corresponds to number 1 and the second integer corresponds to number 2. If they are a Friendly pair, display \u201cFriendly Pair\u201d or display \u201cNot Friendly Pair\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"6\\n\\n28\",\"outputText\":\"Friendly Pair\"},{\"id\":\"2\",\"inputText\":\"13\\n12\",\"outputText\":\"Not Friendly Pair\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Palindrome","title":"Palindrome","order":"0","problemStatement":"Write a C program to find whether the given number is a Palindrome or not. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If the number is a Palindrome number, display \"Same\" or display \"Not Same\".","examples":"[{\"id\":\"1\",\"inputText\":\"565\",\"outputText\":\"Same\"},{\"id\":\"2\",\"inputText\":\"123\",\"outputText\":\"Not Same\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"ArmstrongNumber","title":"Armstrong Number","order":"0","problemStatement":"Write a C program to find whether the given number is an Amstrong number or not. For example, 371 is an Armstrong number since 3^3+ 7^3 + 1^3 = 371. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If it is an Amstrong number, display \u201cArmstrong Number\u201d or display \u201cNot Armstrong Number\u201d.","examples":"[{\"id\":\"1\",\"inputText\":\"153\",\"outputText\":\"Armstrong Number\"},{\"id\":\"2\",\"inputText\":\"140\",\"outputText\":\"Not Armstrong Number\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"PrimeNumber","title":"PrimeNumber","order":"0","problemStatement":"Write a C program to find whether the given number is a Prime number or not. INPUT & OUTPUT FORMAT: Input consists of 1 integer. If the given number is Prime number, display \"Prime\" or display \"Not Prime\".","examples":"[{\"id\":\"1\",\"inputText\":\"2\",\"outputText\":\"Prime\"},{\"id\":\"2\",\"inputText\":\"123\",\"outputText\":\"Not Prime\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Looping","difficulty":"medium","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Artihmeticoperator","title":"Artihmetic operator","order":"0","problemStatement":"Write a C program to perform arithmetic operations such as addition, subtraction, multiplication, modulo division and division. INPUT & OUTPUT FORMAT: Input consists of two integers Output consist of integers","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n2\",\"outputText\":\"7\\n3\\n10\\n1\\n2\"},{\"id\":\"2\",\"inputText\":\"1\\n2\",\"outputText\":\"3\\n-1\\n2\\n1\\n0\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"CricketStadium","title":"Cricket Stadium","order":"0","problemStatement":"There was a large ground in center of the city which is rectangular in shape. The Corporation decides to build a Cricket stadium in the area for school and college students, But the area was used as a car parking zone. In order to protect the land from using as an unauthorized parking zone , the corporation wanted to protect the stadium by building a fence. In order to help the workers to build a fence, they planned to place a thick rope around the ground. They wanted to buy only the exact length of the rope that is needed. They also wanted to cover the entire ground with a carpet during rainy season. They wanted to buy only the exact quantity of carpet that is needed. They requested your help. Can you please help them by writing a program to find the exact length of the rope and the exact quantity of carpet that is required? Input format: Input consists of 2 integers. The first integer corresponds to the length of the ground and the second integer corresponds to the breadth of the ground. Output Format: Output Consists of two integers. The first integer corresponds to the length. The second integer corresponds to the quantity of carpet required.","examples":"[{\"id\":\"1\",\"inputText\":\"50\\n20\",\"outputText\":\"140\\n1000\"},{\"id\":\"2\",\"inputText\":\"70\\n40\",\"outputText\":\"220\\n2800\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"DeptRepay","title":"Dept Repay","order":"0","problemStatement":"Alice wanted to start a business and she was looking for a venture capitalist. Through her friend Bob, she met the owner of a construction company who is interested to invest in an emerging business. Looking at the business proposal, the owner was very much impressed with Alice's work. So he decided to invest in Alice's business and hence gave a green signal to go ahead with the project. Alice bought Rs.X for a period of Y years from the owner at R% interest per annum. Find the rate of interest and the total amount to be given by Alice to the owner. The owner impressed by proper repayment of the financed amount decides to give a special offer of 2% discount on the total interest at the end of the settlement. Find the amount given back by Alice and also find the total amount. (Note: All rupee values should be in two decimal points). INPUT FORMAT: Input consists of 3 integers. The first integer corresponds to the principal amount borrowed by Alice. The second integer corresponds to the rate of interest The third integer corresponds to the number of years. OUTPUT FORMAT: The output consists of 4 floating point values. The first value corresponds to the interest. The second corresponds to the amount. The third value corresponds to the discount. The last value corresponds to the final settlement. All floating point values are to be rounded off to two decimal places","examples":"[{\"id\":\"1\",\"inputText\":\"100\\n1\\n10\",\"outputText\":\"10.00\\n110.00\\n0.20\\n109.80\"},{\"id\":\"2\",\"inputText\":\"10000\\n10\\n5\",\"outputText\":\"5000.00\\n15000.00\\n100.00\\n14900.00\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Sportsday","title":"Sports day Celebration","order":"0","problemStatement":"Training for sports day has begun and the physical education teacher has decided to conduct some team games. The teacher wants to split the students in higher secondary into equal sized teams. In some cases, there may be some students who are left out from the teams and he wanted to use the left out students to assist him in conducting the team games. For instance, if there are 50 students in a class and if the class has to be divided into 7 equal sized teams, 7 students will be there in each team and 1 student will be left out. That 1 student will assist the PET. With this idea in mind, the PET wants your help to automate this team splitting task. Can you please help him out? INPUT FORMAT: Input consists of 2 integers. The first integer corresponds to the number of students in the class and the second integer corresponds to the number of teams. OUTPUT FORMAT: The output consists of two integers. The first integer corresponds to the number of students in each team and the second integer corresponds to the students who are left out.","examples":"[{\"id\":\"1\",\"inputText\":\"60\\n8\",\"outputText\":\"7\\n4\"},{\"id\":\"2\",\"inputText\":\"50\\n4\",\"outputText\":\"12\\n2\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"ThenewspaperAgency","title":"The newspaper Agency","order":"0","problemStatement":"Each Sunday, a newspaper agency sells w copies of a special edition newspaper for Rs.x per copy. The cost to the agency of each newspaper is Rs.y. The agency pays a fixed cost for storage, delivery and so on of Rs.100 per Sunday. The newspaper agency wants to calculate the profit which it obtains only on Sundays. Can you please help them out by writing a program to compute the profit if w, x, and y are given. INPUT FORMAT: Input consists of 3 integers: w, x, and y. w is the number of copies sold, x is the cost per copy and y is the cost the agency spends per copy. OUTPUT FORMAT: The output consists of a single integer which corresponds to the profit obtained by the newspaper agency.","examples":"[{\"id\":\"1\",\"inputText\":\"1000\\n\\n2\\n\\n1\",\"outputText\":\"900\"},{\"id\":\"2\",\"inputText\":\"900\\n5\\n3\",\"outputText\":\"1700\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"TheChroniclesofNarni","title":"The Chronicles of Narnia","order":"0","problemStatement":"Four kids Peter,Susan,Edmond and Lucy travel through a wardrobe to the land of Narnia. Narnia is a fantasy world of magic with mythical beasts and talking animals.While exploring the land of narnia Lucy found Mr.Tumnus the two legged stag ,and she followed it, down a narrow path .She and Mr.Tumnus became friends and he offered a cup of coffee to Lucy in his small hut.It was time for Lucy to return to her family and so she bid good bye to Mr.Tumnus and while leaving Mr.Tumnus told that it is quite difficult to find the route back as it was already dark.He told her to see the trees while returning back and said that the first tree with two digits number will help her find the way and the way to go back to her home is the sum of digits of the tree and that numbered way will lead her to the tree next to the wardrobe where she can find the others.Lucy was already confused, so pls help her in finding the route to her home.... Input Format: Input consists of an integer corresponding to the 2-digit number. Output Format: Output consists of an integer corresponding to the sum of its digits.","examples":"[{\"id\":\"1\",\"inputText\":\"87\",\"outputText\":\"15\"},{\"id\":\"2\",\"inputText\":\"54\",\"outputText\":\"9\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Fourmusketeers","title":"Four musketeers","order":"0","problemStatement":"'Artagnan joined the group of 3 Musketeers and now their group is called four Musketeers. Meanwhile, d'Artagnan also moved to a new house in the same locality nearby to the other three. Currently, the houses of Athos, Porthos and Aramis are located in the shape of a triangle. When the three musketeers asked d'Artagnan about the location of his house, he said that his house is equidistant from the houses of the other 3. Can you please help them find out the location of the house? Given the 3 locations {(x1,y1), (x2,y2) and (x3,y3)} of a triangle, write a program to determine the point which is equidistant from all the 3 points. INPUT FORMAT: Input consists of 6 integers. The first integer corresponds to x1. The second integer corresponds to y1. The third and fourth integers correspond to x2 and y2 respectively. The fifth and sixth integers correspond to x3 and y3 respectively. OUTPUT FORMAT: The output consists of two floating point numbers (with one decimal place) which correspond to the location of the house.","examples":"[{\"id\":\"1\",\"inputText\":\"2\\n\\n4\\n\\n10\\n\\n15\\n\\n5\\n\\n8 \",\"outputText\":\"5.7\\n9.0\"},{\"id\":\"2\",\"inputText\":\"1\\n1\\n1\\n1\\n1\\n1\\n1\",\"outputText\":\"1.0\\n1.0\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Themisersdiscount","title":"The misers discount","order":"0","problemStatement":"Mrs.Bhulbhul is a miser to the core. She saves money even on petite things. One day she heard a discount offer announced in a mall. She wants to purchase a lot of items to save her money. The discount is given only when at least two items are bought. Since each item has different discount prices, she finds it difficult to check the amount she has saved. So she approaches you to device an automated discount calculator to make her easy while billing. INPUT FORMAT: Input consists of two floating point values denoting price of item1 and item2. The third input denotes the discount value in percentage. OUTPUT FORMAT: The output consists of three floating values denoting total amount, discounted price and amount saved.","examples":"[{\"id\":\"1\",\"inputText\":\"20.50\\n\\n45.40\\n\\n10 \",\"outputText\":\"65.90\\n59.31\\n6.59\"},{\"id\":\"2\",\"inputText\":\"65.90\\n59.31\\n6.59\",\"outputText\":\"125.21\\n116.96\\n8.25\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"TreasureHunter","title":"Treasure Hunter","order":"0","problemStatement":"Though there have been more successful pirates, Blackbeard is one of the best-known and widely-feared of his time. He commanded four ships and had a pirate army of 300 at the height of his career and defeated the famous warship, HMS \u201cScarborough\u201d in sea-battle. He was known for barreling into battle clutching two swords with several knives and pistols at the ready. He captured over forty merchant ships in the Caribbean and without flinching killed many prisoners. Now, Blackbeard and his three pirates found a treasure of gold coins. Long Ben too joined them. They decided to share the treasure. Blackbeard agreed to give x% share for Long Ben. He then decided to take y% share from the remaining treasure. His other pirates will share the remaining gold coins equally. Write a program to compute their share's. INPUT FORMAT: Input consists of 3 integers. The first input corresponds to the number of gold coins in the treasure. The second input corresponds to Ben's share percentage and the last input is Blackbeard's share percentage. OUTPUT FORMAT: The output consists of three integers. The first output integer corresponds to Long Ben's share. The second integer corresponds to Blackbeard's share. The last integer corresponds to other pirates share.","examples":"[{\"id\":\"1\",\"inputText\":\"729\\n65\\n87\",\"outputText\":\"473\\n222\\n11\"},{\"id\":\"2\",\"inputText\":\"72\\n6\\n8\",\"outputText\":\"4\\n5\\n21\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Bookathealien","title":"Booka the alien","order":"0","problemStatement":"Booka is an alien. He couldn't understand how to measure days, weeks, months and years. Make Booka understand what is meant by days, weeks, months and years. Teach him about the conversion of days into years, months and weeks using a program. INPUT FORMAT: Input consists of an integer which corresponds to the number of days. OUTPUT FORMAT: The output consists of three integers. The first integer corresponds to the total years. The second integer corresponds to the total weeks. The third integer corresponds to the total days.","examples":"[{\"id\":\"1\",\"inputText\":\"373\",\"outputText\":\"1\\n1\\n1\"},{\"id\":\"2\",\"inputText\":\"365\",\"outputText\":\"1\\n0\\n0\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"HarryPotter","title":"Harry Potter","order":"0","problemStatement":"Having crossed the three-headed dog, Harry, Ron, and Hermoine went through a secret trap door in search of Sorcerer's stone. On the way, they passed through a room and found that the room has only one door opposite to them and the door through which they entered has shut once they entered the room. The door was very large with a four digit number imprinted on it. When Harry and Ron tried to open it by casting out spells, it didn't open. Having tried various spells both of them got fed up and they left the task to Hermoine. Hermoine on curiously observing the room found that a statement was written on the top of the room. It was written as follows \"I will be always four\" \u201cI can only be opened when you add my first and last and enter it\u201d \u201cIf you find a sign, you should not consider it\u201d Help Hermoine break the code and open the door so that they can save the sorcerer's stone. INPUT FORMAT: Input consists of a single integer which is present on the door. OUTPUT FORMAT: The output is a single integer.","examples":"[{\"id\":\"1\",\"inputText\":\"1001\",\"outputText\":\"2\"},{\"id\":\"2\",\"inputText\":\"2381\",\"outputText\":\"3\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"HopnHop","title":"Hop n Hop","order":"0","problemStatement":"Big Bunny lives in a colony. He is the only bunny in his colony who is not able to hop. On his 5th birthday, his father bunny gifted him a pogo stick as he could not jump like the other bunnies. He is so excited to play with the pogo stick. The pogo stick hops one unit per jump. He wanders around his house jumping with pogo sticks. He wants to show the pogo stick to his friends and decides to go using pogo sticks. Write a program to find the number of hops needed to reach his friends' house. Assume that Big Bunny's house is in the location (3,4). INPUT FORMAT: Input consists of two integers x,y. The x and y correspond to x and y coordinates of his friends' house. OUTPUT FORMAT: The output is an integer. It corresponds to the number of hops needs to reach his friends' house.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n10\",\"outputText\":\"6\"},{\"id\":\"2\",\"inputText\":\"15\\n3\",\"outputText\":\"12\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Windchillfactor","title":"Wind chill factor","order":"0","problemStatement":"Wind chill factor is the felt air temperature on exposed skin due to the wind. The wind chill temperature is always lower than the air temperature and is calculated as per the following formula. WCF = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16 Write a program to receive values of temperature and wind velocity and calculate the Wind Chill Factor. INPUT FORMAT: The input consists of two integers. The first integer corresponds to the temperature of the wind and the second integer corresponds to the wind velocity. OUTPUT FORMAT: The output consists of a single integer which corresponds to the Wind Chill Factor. Decimal values are rounded off to two decimal points.","examples":"[{\"id\":\"1\",\"inputText\":\"35\\n20\",\"outputText\":\"23.92\"},{\"id\":\"2\",\"inputText\":\"0\\n0\",\"outputText\":\"35.74\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Operators","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Print_the_values","title":" Print the values","order":"0","problemStatement":"Aadhi is learning storage structure with the help of Ragavi. Ragavi's first task is to make Aadhi understand the concept of arrays by asking Aadhi to create an array dynamically and get the inputs into the array and print the array. As Aadhi had confusion, he has approached you for help. Help Aadhi by writing a program to create an array, get inputs and print the inputs. FUNCTIONAL REQUIREMENTS: void print(int, int *);\nINPUT & OUTPUT FORMAT:\n\nThe first line corresponds to the size of the array n.\n\nThe next line corresponds to the number of inputs.\n\nThe output consists of the elements in the array.","examples":"[{\"id\":\"1\",\"inputText\":\"3\\n\\n1\\n\\n2\\n\\n3\",\"outputText\":\"1\\n\\n2\\n\\n3\"},{\"id\":\"2\",\"inputText\":\"2\\n1\\n2\",\"outputText\":\"1\\n2\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Count_odd_and_even","title":"Count odd and even","order":"0","problemStatement":"Write a C program to count the number of even and odd elements in an array.","examples":"[{\"id\":\"1\",\"inputText\":\"3\\n\\n1\\n\\n2\\n\\n3\",\"outputText\":\"Odd: 2\\nEven: 1\"},{\"id\":\"2\",\"inputText\":\"5\\n1\\n2\\n4\\n5\\n6\",\"outputText\":\"Odd: 2\\nEven: 3\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Maximum_value","title":"Maximum value","order":"0","problemStatement":"Write a C program to find the maximum element in an array. FUNCTIONAL REQUIREMENTS: int maximum(int, int *);\nInput consists of 1 integer and 1 array.\n\nInteger corresponds to the size of the array.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n33\\n\\n4\\n\\n5\",\"outputText\":\"33\"},{\"id\":\"2\",\"inputText\":\"3\\n101\\n210\\n90\",\"outputText\":\"210\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Sum_of_elements","title":"Sum of elements","order":"0","problemStatement":"QUESTION: Write a C program to find the sum of elements in an array. FUNCTIONAL REQUIREMENTS: int sumOfElements(int, int *);\nINPUT & OUTPUT FORMAT:\n\nInput consists of 1 integer and 1 array.\n\nInteger corresponds to the size of the array\n\nThe output consists of an integer.","examples":"[{\"id\":\"1\",\"inputText\":\"3\\n\\n 1\\n\\n 2\\n\\n 3\",\"outputText\":\"6\"},{\"id\":\"2\",\"inputText\":\"5\\n1\\n2\\n3\\n4\\n5\",\"outputText\":\"15\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Same_or_Not","title":"Same or Not","order":"0","problemStatement":"Write a C program to find whether the two arrays are the same or not. Two arrays are said to be the same if the sum of both the arrays is the same and the size of arrays is the same. FUNCTIONAL REQUIREMENTS: int findsame(int*,int); int* createarray(int); void getelements(int*,int);\nINPUT FORMAT:\nInput consists of 2 integers and 2 arrays.\n\nIntegers correspond to the size of arrays.\n\nIf two arrays are same, display \"Same\" else display \"Not Same\"","examples":"[{\"id\":\"1\",\"inputText\":\"3\\n\\n3\\n\\n1\\n\\n2\\n\\n3\\n\\n1\\n\\n2\\n\\n3\",\"outputText\":\"Same\"},{\"id\":\"2\",\"inputText\":\"3\\n3\\n1\\n2\\n1\\n2\\n3\\n6\",\"outputText\":\"Not Same\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Additionoffirstnnumb","title":"Addition of first n numbers","order":"0","problemStatement":"Write a C program to find the sum of first 'n' natural numbers by recursion. INPUT & OUTPUT FORMAT: The input corresponds to the value of n. The output corresponds to the sum of the values up to n.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"15\"},{\"id\":\"2\",\"inputText\":\"4\",\"outputText\":\"10\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"prmnum","title":"Prime Number","order":"0","problemStatement":"Write a C program to find whether the given number is a prime number or not using recursion.","examples":"[{\"id\":\"1\",\"inputText\":\"13\",\"outputText\":\"yes\"},{\"id\":\"2\",\"inputText\":\"4\",\"outputText\":\"no\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"DecimaltoBinary","title":"Decimal to Binary","order":"0","problemStatement":"Write a C program to convert a decimal number to a binary number by recursion.","examples":"[{\"id\":\"1\",\"inputText\":\"10\",\"outputText\":\"1010\"},{\"id\":\"2\",\"inputText\":\"4\",\"outputText\":\"0100\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"PowerofaNumber","title":"Power of a Number","order":"0","problemStatement":"Write a C program to find the power of a number using recursion.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n2\",\"outputText\":\"25\"},{\"id\":\"2\",\"inputText\":\"4\\n5\",\"outputText\":\"1024\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"LargestElement","title":"Largest Element","order":"0","problemStatement":"Write a C program to find the largest element of an array using recursion.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n3\\n\\n65\\n\\n4\",\"outputText\":\"65\"},{\"id\":\"2\",\"inputText\":\"4\\n1\\n2\\n3\\n4\",\"outputText\":\"4\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Sumofthearrayelement","title":"Sum of the array elements","order":"0","problemStatement":"Write a C program to find the sum of array elements using recursion.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n3\\n\\n4\\n\\n5\",\"outputText\":\"15\"},{\"id\":\"2\",\"inputText\":\"4\\n\\n1\\n\\n2\\n\\n3\\n\\n4\",\"outputText\":\"10\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"searchtheelement","title":"search the element","order":"0","problemStatement":"Write a C program to perform the binary search on an array using recursion. return the index of founded element if not found return -1","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n3\\n\\n4\\n\\n5\\n\\n5\",\"outputText\":\"4\"},{\"id\":\"2\",\"inputText\":\"4\\n1\\n5\\n6\\n8\\n9\",\"outputText\":\"-1\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Recursion","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"ttwe","title":"Sum of even and odd","order":"0","problemStatement":"Arun and Kalai were playing a puzzle game with a given set of numbers.\n\nThey need to find the odd and even numbers and find the sum of the odd numbers and the sum of the even numbers.\n\nWrite a program to help them to solve the puzzle game and to win the mobile phone.\n\n\nInput Format:\n\nInput consists of n+1 integers. \n\nThe first integer corresponds to \u2018n\u2019, the size of the array. \n\nThe next \u2018n\u2019 integers correspond to the elements in the array. \n\nAssume that the maximum value of n is 15.\n\n \n\nOutput Format:\n\nRefer to sample output for details.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n2\\n\\n3\\n\\n6\\n\\n8\\n\\n-1\",\"outputText\":\"The sum of the even numbers in the array is 16\\nThe sum of the odd numbers in the array is 2\"},{\"id\":\"2\",\"inputText\":\"5\\n2\\n4\\n7\\n8\\n1\",\"outputText\":\"The sum of the even numbers in the array is 14\\nThe sum of the odd numbers in the array is 8\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"test","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":null},{"id":"Comparetwoarrays","title":"Compare two arrays","order":"0","problemStatement":"Given two arrays, you need to compare them and display if they are the same or not.\n\n\nInput Format:\n\nInput consists of 2n+1 integers. \n\nThe first integer corresponds to \u2018n\u2019, the size of the array. \n\nThe next \u2018n\u2019 integers correspond to the elements in the first array. \n\nThe next \u2018n\u2019 integers correspond to the elements in the second array.\n\nAssume that the maximum value of n is 15.\n\n \n\nOutput Format:\n\nPrint yes if the 2 arrays are the same. Print no if the 2 arrays are different.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n2\\n\\n3\\n\\n6\\n\\n8\\n\\n-1\\n\\n2\\n\\n3\\n\\n6\\n\\n8\\n\\n-1\",\"outputText\":\"yes\"},{\"id\":\"2\",\"inputText\":\"3\\n1\\n4\\n7\\n8\\n5\\n2\",\"outputText\":\"no\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":"#include <stdio.h>\n\nint main() {\n    int n, c = 0;\n    \n    \/\/ Read the size of the arrays\n    scanf(\"%d\", &n);\n\n    int a[n], b[n];\n\n    \/\/ Read elements into array 'a'\n    for(int i = 0; i < n; i++) {\n        scanf(\"%d\", &a[i]);\n    }\n\n    \/\/ Read elements into array 'b'\n    for(int i = 0; i < n; i++) {\n        scanf(\"%d\", &b[i]);\n    }\n\n    \/\/ Compare the arrays\n    for(int i = 0; i < n; i++) {\n        if(a[i] == b[i]) {\n            c++;\n        }\n    }\n\n    \/\/ Check if all elements matched\n    if(c == n) {\n        printf(\"yes\\n\");\n    } else {\n        printf(\"no\\n\");\n    }\n\n    return 0;\n}\n"},{"id":"Arrayinsertion","title":"Array insertion","order":"0","problemStatement":"Arun and Ram were playing cards. Arun has 5 cards. Ram wants to insert a new card in between Arun's cards. Ram wants to find the position to insert the card. So help him to find the position to insert a certain card. If Ram inserts a card in a position other than the position of 5 cards, the game will be over. So play carefully. EXAMPLE: consider an array having three elements in it initially and a[0] = 1, a[1] = 2 and a[2] = 3 and you want to insert a number 45 at location 1 i.e. a[0] = 45, so we have to move elements one step below after insertion a[1] = 1 , and a[2] = 2 and a[3] = 3.\n\n\nInput Format:\n\nAssume that the maximum number of elements in the array is 20.\n\n \n\nOutput Format:\n\nRefer to the sample input and output for formatting specifications.\n\n ","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n3\\n\\n4\\n\\n5\\n\\n4\\n\\n10\",\"outputText\":\"1\\n2\\n3\\n10\\n4\\n5\"},{\"id\":\"2\",\"inputText\":\"4                                                                                                                                                \\n1                                                                                                                                               \\n4                                                                                                                                                \\n7                                                                                                                                               \\n5                                                                                                                                                \\n3                                                                                                                                                \\n10\",\"outputText\":\"1\\n4\\n10\\n7\\n5\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":"#include <stdio.h>\n\nint main()\n{\n    int n;\n    \n    \/\/ Read the size of the array\n    scanf(\"%d\", &n);\n    \n    int arr[n];\n    \n    \/\/ Read the elements of the array\n    for (int i = 0; i < n; i++) {\n        scanf(\"%d\", &arr[i]);\n    }\n    \n    int pos, ele;\n    \n    \/\/ Read the position to insert and the element to insert\n    scanf(\"%d\", &pos);\n    \n    if (pos > n) {\n        \/\/ If the position is invalid, print error message\n        printf(\"Invalid Input\\n\");\n    } else {\n        \/\/ Read the element to be inserted\n        scanf(\"%d\", &ele);\n        \n        \/\/ Loop through the array and print values\n        for (int i = 0; i < n; i++) {\n            if (i == pos - 1) {\n                \/\/ Insert the element at the specified position\n                printf(\"%d\\n%d\\n\", ele, arr[i]);\n            } else {\n                printf(\"%d\\n\", arr[i]);\n            }\n        }\n    }\n\n    return 0;\n}\n"},{"id":"Arraydeletion","title":"Array deletion","order":"0","problemStatement":"Given an array with 'n' elements, Suresh wants to delete an element at a particular position in the array. Help him in deleting the element and displaying the updated array.\n\n\nInput Format:\n\nAssume that the maximum number of elements in the array is 20.\n\n \n\nOutput Format:\n\nRefer to the sample input and output for formatting specifications.","examples":"[{\"id\":\"1\",\"inputText\":\"5\\n\\n1\\n\\n2\\n\\n3\\n\\n4\\n\\n5\\n\\n4\",\"outputText\":\"Array after deletion is\\n1\\n2\\n3\\n5\"},{\"id\":\"2\",\"inputText\":\"5\\n1\\n2\\n3\\n4\\n5\\n4\",\"outputText\":\"Array after deletion is\\n1\\n2\\n3\\n5\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"1D_Array","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":"#include <stdio.h>\n\nint main() {\n    int n, i, pos;\n\n    \/\/ Reading the size of the array\n    scanf(\"%d\", &n);\n\n    int arr[n];\n\n    \/\/ Reading the elements of the array\n    for (i = 0; i < n; i++) {\n        scanf(\"%d\", &arr[i]);\n    }\n\n    \/\/ Reading the position of the element to be deleted\n    scanf(\"%d\", &pos);\n\n    \/\/ If position is invalid\n    if (pos > n) {\n        printf(\"Invalid Input\");\n    } else {\n        printf(\"Array after deletion is\\n\");\n\n        \/\/ Printing the array after deletion\n        for (i = 0; i < n; i++) {\n            if (i != pos - 1) {\n                printf(\"%d\\n\", arr[i]);\n            }\n        }\n    }\n\n    return 0;\n}\n"},{"id":"AutomorphicNumber","title":"Automorphic Number","order":"0","problemStatement":"Janu is very interested in mathematics and she loves to solve math puzzles daily. Her friend knows that and she asks her to find out what an automorphic number is and to implement that concept using C programming. But since Janu is not good at programming, you need to help her implement this concept. An automorphic number is a number whose square ends with the number itself. For example, 5 is an automorphic number as 5*5 =25. The last digit is 5 which is the same as the given number. It has only positive single digit numbers. If the number is not valid, it should display \"Invalid input\". If it is an automorphic number display \u201cAutomorphic Number\u201d else display \u201cNot Automorphic Number\u201d. INPUT FORMAT: Input consists of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"7\",\"outputText\":\"Not Automorphic Number\"},{\"id\":\"2\",\"inputText\":\"6\",\"outputText\":\"Automorphic Number\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":"#include<stdio.h>\n\nint main()\n\n{\n\n  int a, sq;\n\n  scanf(\"%d\", &a);\n\n  sq = a * a;\n\n  sq = sq % 10;\n\n  if(a==sq)\n\n    printf(\"Automorphic Number\");\n\n  else\n\n    printf(\"Not Automorphic Number\");\n\n}"},{"id":"Digittoword","title":"Digit to word","order":"0","problemStatement":"Write a C program to display the name of the single digit number using switch case. If the given input is not a single digit number, then display \"Invalid Input\". INPUT FORMAT: Input consists of 1 integer.","examples":"[{\"id\":\"1\",\"inputText\":\"5\",\"outputText\":\"Five\"},{\"id\":\"2\",\"inputText\":\"6\",\"outputText\":\"Six\"}]","constraints":"No constraints","starterCode":"\/\/write your program here","category":"Decision_Making","difficulty":"easy","blacklist":"[]","whitelist":"[]","imageUrl":"","answer":"#include<stdio.h>\n\nint main()\n\n{\n\n  int a;\n\n  scanf(\"%d\", &a);\n\n  switch(a){\n\n    case 0:\n\n      printf(\"Zero\");\n\n      break;\n\n    case 1:\n\n      printf(\"One\");\n\n      break;\n\n    case 2:\n\n      printf(\"Two\");\n\n      break;\n\n    case 3:\n\n      printf(\"Three\");\n\n      break;\n\n    case 4:\n\n      printf(\"Four\");\n\n      break;\n\n    case 5:\n\n      printf(\"Five\");\n\n      break;\n\n    case 6:\n\n      printf(\"Six\");\n\n      break;\n\n    case 7:\n\n      printf(\"Seven\");\n\n      break;\n\n    case 8:\n\n      printf(\"Eight\");\n\n      break;\n\n    case 9:\n\n      printf(\"Nine\");\n\n      break;\n\n    default:\n\n      printf(\"Invalid Input\");\n\n  }\n\n}"}]