Write a program that generates the following outputs :
5
10
9
Assign value 5 to a variable using= multiply it with 2 to generate 10 and subtract 1 to generate 9
#include iostream;
using namespace std;
int main() {
int a = 5;
cout<<a;
a *= 2;
cout<<a;
a-=1;
cout<<a;
return 0;
}