Home Computers and Technology Out put of Print (3**2*2) Out put of Print (3**2*2)Computers and Technology Jungcoochie101October 22, 20213 CommentsOut put of Print (3**2*2)
Using C++ for the nested looped program.NOTE: Each digit in string prints '+'Explanation:#include <iostream>#include <string> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.length(); ++i) { for (int j = 0; j < s[i]-'0'; ++j) { cout << "+"; } cout << endl; } return 0;}Reply
Explanation:
[tex]36 \: is \: the \: answer....[/tex]
[tex]Out put of Print (3**2*2)[/tex]
Using C++ for the nested looped program.
NOTE: Each digit in string prints '+'
Explanation:
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 0; i < s.length(); ++i) {
for (int j = 0; j < s[i]-'0'; ++j) {
cout << "+";
}
cout << endl;
}
return 0;
}
18
Explanation:
please mark me as brainliest