Pattern in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pattern in c++

#include<iostream.h> #include<conio.h> Void main() { int i;j; for(i=1;i<=5;i++){ for(j=1;j<=i;j++){ Cout<<"*"; } Cout<<"\n"; } getch(); }

21st May 2018, 3:22 PM
Mahendra Kumar
Mahendra Kumar - avatar
4 Answers
+ 18
There are many errors.... like .h in header file... semi-colon between i & j return type of main should be int.. small c in cout std::cout check out the correct one 👇 https://code.sololearn.com/cDAK4Z6izc3G/?ref=app
21st May 2018, 3:31 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 2
whats problem
21st May 2018, 3:23 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
0
Please tell me about
21st May 2018, 3:24 PM
Mahendra Kumar
Mahendra Kumar - avatar
0
Problem is a no output
21st May 2018, 3:25 PM
Mahendra Kumar
Mahendra Kumar - avatar