Question: Write the output of the following code if the value of n is 3: int n, a = 1, b = 2, k =
Write the output of the following code if the value of n is 3: int n, a = 1, b = 2, k = 1, c; cin >>n; cout < < < < " cout < < 1 < < " while(k
Step by Step Solution
3.44 Rating (163 Votes )
There are 3 Steps involved in it
include using namespace std int main int n a 1 b 2 k 1 c cin n cout 1 end... View full answer
Get step-by-step solutions from verified subject matter experts
