Anonymous

Write A Java Program To Display The Sum First 10 Numbers From 1 To 10?

4

4 Answers

skgouse gulam Profile
skgouse gulam answered
Class Example
{
public static void main(String args[])

{

for (int I=1;I=<10;I++)

{int sum=0;

sum=sum+I;
System.out.prin sum of 1 to 10 is="+sum)

}

}

}
brijbihari rajouriya Profile
Class Sum

{

public static void main(String args[])

{

int I,sum=0;

for(I=1;I<=10;I++)

{

sum=sum+I;

}

System.out.println("sum="+sum);

}

}
Anonymous Profile
Anonymous answered
Reverse the digit 775
Anonymous Profile
Anonymous answered
Atic void main(String args[]) { int I,sum=0; for(I=1;I

Answer Question

Anonymous