4th Oct 2022, 11:27 AM
Abhay mishra
Abhay mishra - avatar
2 Antworten
+ 2
You are using void type for print function so just put print(n) ; instead of cout<<print(5); //error
4th Oct 2022, 12:01 PM
Jayakrishna 🇮🇳
0
Bro just remove the cout << print(5); And put print(n) int index = 1; while (index <= 5){ cout << index << endl; index ++; } either use this code ..
4th Oct 2022, 3:20 PM
Akeiy
Akeiy - avatar