Question: Consider the following code fragment. What will be printed out? int sum, i , j; int alpha = 7 ; int beta = 8 ;

Consider the following code fragment. What will be printed out?
int sum, i, j;
int alpha =7;
int beta =8;
sum =0;
for (i =0; i < alpha; i++)
{
for (j =0; j < beta; j++)
{
sum = sum +1;
}
}
x = sum;
System.out.println(x); //C or C++: cout << x;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!