You are on page 1of 7

COMPUTER

PROJECT

Name. Soumyajit Saha


Class. IX
Section. Science
Roll. 27
SOURCE CODE
public class a1
{
public static void main(String args[])
{
for(int i=0;i<40;i+=5)
{
System.out.print(i+"");
}
}
}

OUTPUT
SOURCE CODE
public class a2
{
public static void main(String args[])
{
int i, sq=0;
for(i=1;i<=10;i++)
{ sq=i*i;
System.out.println("Square of "+i+": " +sq);
}
}
}

OUTPUT
SOURCE CODE
public class a3
{
void prnNaturalNos()
{
int i;
for(i=1;i<=20;i++)
{ System.out.print(i);
}
}
}

OUTPUT
SOURCE CODE
public class a4
{
void prnEvenNos()
{
int i, evnum=2;
for(i=1;i<=10;i++)
{
System.out.println(evnum);
evnum=evnum+2;
}
}
}

OUTPUT
SOURCE CODE
public class a5
{
public static void print()
{
String str="";
int i;
for(i=0;i<5;i++,str=str+"B")
{
System.out.println(str);
}
}
}

OUTPUT
Conclusion
By doing this project, I have known
about very interesting topics. I have
learnt to do coding on Bluej and how to
take screenshots of it and paste it in MS
Word.

Bibliography
The writings used in this project are
taken from my course Computer book
“ICSE Computer Applications for Class
IX” by Sumita Arora.

You might also like