Q5)Write the if statement to check the given condition
Whether the variable cdno is either a single digit number or a 3 digit number.
Q6) Go through the sets of code statements given below and write the screen output on execution of each one of them
a]
String numbers="4567",same="not the same";
int number=14567;
System.out.println(" the number "+numbers+" and the numbers "+number+" almost look "+same);
b]
char a='a',b='b';
int n1=1,n2=2;
if(n1>1&&n2<2)
{
a=b;
b=a;
}
else
{
a='b';
b='a';
}
System.out.println("a"+b+"b"+a);
c]
System.out.println("i");
for(int i=10;i<10;i++)
{
System.out.println("i");
}
System.out.println("i");
Answers
Answered by
1
Answer:
nssnenennrnnfnfmmdkdkdkicuucufuidjejnrbtbbtnfnjckckv
Explanation:
shdrhnrnfnmdmkkckcokdkemrnnrbndkcjjcj
Similar questions
Physics,
2 months ago
English,
2 months ago
Science,
6 months ago
Geography,
6 months ago
Social Sciences,
11 months ago
India Languages,
11 months ago