Computer Science, asked by Anonymous, 1 year ago

Question 4 and 5 ANS please

Attachments:

Answers

Answered by nain31
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++;
}
}
}
}
Similar questions