Question 4 and 5 ANS please
Attachments:
Answers
Answered by
1
QUESTION 4 MENE DUSRE QUESTION MAIN DEDIYA..
Q-5
import Java. io*;
Class b
{
public static void main(String args[])throws Exception
{
int i,n=0;
while(ctr!=8)
{
for(i=1;i<=5; i++)
{
n=n*10+1;
System. out.println(+n",");
ctr++;
}
}
}
}
Q-5
import Java. io*;
Class b
{
public static void main(String args[])throws Exception
{
int i,n=0;
while(ctr!=8)
{
for(i=1;i<=5; i++)
{
n=n*10+1;
System. out.println(+n",");
ctr++;
}
}
}
}
Similar questions
Chemistry,
6 months ago
English,
6 months ago
Business Studies,
1 year ago
English,
1 year ago
Math,
1 year ago