10 Output Following Code Int 5 Int L 0 1 5 1 Cout Q37202093

10. What is the output of the following code? int A = 5; for(int l= 0:1 < 5; 1++) A=A+I; cout<xA10. What is the output of the following code? int A = 5; for(int l= 0:1 < 5; 1++) A=A+I; cout<xA Show transcribed image text 10. What is the output of the following code? int A = 5; for(int l= 0:1


Answer


Output:

5681115

Code:

#include <iostream>

using namespace std;

int main()
{
int A = 5;
for (int I = 0 ; I<5 ;I++)
{
A=A+I;
cout<<A;
}
return 0;
}

5681115

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.