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
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
}
}
Today we will cover questions from operators
Get ready
JavaScript Validations By Yakub.pdf
478.8 KB
JAVASCRIPT BY YAKUB SIR
👍1
Forwarded from INTRADAY TRADER ®
import java.io.*;
public class CountChar
{

public static void main(String[] args) throws IOException
{
String ch;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the Statement:");
ch=br.readLine();
int count=0,len=0;
do
{
try
{
char name[]=ch.toCharArray();
len=name.length;
count=0;
for(int j=0;j<len;j++)
{
if((name[0]==name[j])&&((name[0]>=65&&name[0]<=91)(name[0]>=97&&name[0]<=123)(name[0]>=48&&name[0]<=57)))
count++;
}
if(count!=0)
System.out.println(name[0]+" "+count+" Times");
ch=ch.replace(""+name[0],"");
}
catch(Exception ex){}
}
while(len!=1);
}

}