Question 1.6

mail@pastecode.io avatar
unknown
java
a year ago
252 B
0
Indexable
Never
public class QuestionOnePointSix 
{
    public static void main(String[] args) 
    {
        int sum = 0;
        for(int i  = 1, num = 1; i< 11; i++, num++)
        {
            sum = sum + num;
        }
        System.out.println(sum);
    }    
}