10. 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:
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