Print string ERIC in pattern in c++ using for loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Print string ERIC in pattern in c++ using for loop

output should be C I C R I C E R I C

22nd Jul 2017, 10:12 AM
Prerna
Prerna - avatar
1 Answer
+ 1
//Simple. //code should be: #include<iostream> using namespace std; int main(){ cout<<" C \n I \t C \n R \t I \t C \n E \t R \t I \t C \n" <<endl; return 0; }
22nd Jul 2017, 10:26 AM
Akash papnai
Akash papnai - avatar