Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

//LOOPING QUESTIONS

int p=1,s=0;
while(p++ <15)
{
p++;
s=s+p;
System.out.Println(p);
}
System.out.Println(s);

p s
3 3
5 8
7 15
9 24
11 35
13 48
15 63

Answer= 3,5,7,9,11,13,15,63

You might also like