Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
String pool going on
Java Hyd Team
Photo
Join everyday 9pm 😁😁
Going great ☺️
Great response 16 participants joined
Problem
In Chefland, a tax of rupees 1010 is deducted if the total income is strictly greater than rupees 100100.

Given that total income is XX rupees, find out how much money you get.

Input Format
The first line of input will contain a single integer TT, denoting the number of test cases.
The first and only line of each test case contains a single integer XX β€” your total income.
Output Format
For each test case, output on a new line, the amount of money you get.

Constraints
1 \leq T \leq 1001≀T≀100
1 \leq X \leq 10001≀X≀1000
Sample 1:
Input
Output
4
5
105
101
100
5
95
91
100
Explanation:
Test case 11: Your total income is 55 rupees which is less than 100100 rupees. Thus, no tax would be deducted and you get 55 rupees.

Test case 22: Your total income is 105105 rupees which is greater than 100100 rupees. Thus, a tax of 1010 rupees would be deducted and you get 105-10 = 95105βˆ’10=95 rupees.

Test case 33: Your total income is 101101 rupees which is greater than 100100 rupees. Thus, a tax of 1010 rupees would be deducted and you get 101-10 = 91101βˆ’10=91 rupees.

Test case 44: Your total income is 100100 rupees which is equal to 100100 rupees. Thus, no tax would be deducted and you get 100100 rupees.
Solve this problem today to join quiz
4
5
105
101
100


Input for testing
/* package com.Aman; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Exceptionsss
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
}
}