How to give enter to generated code. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to give enter to generated code.

#include <iostream> #include <cstdlib> using namespace std; int main(){ for(int i=0;i<10;i++){ cout<<""&(1+rand()%9)&"\n"; } }

6th Nov 2016, 10:11 AM
Yuzar Aryadi
Yuzar Aryadi - avatar
1 Réponse
+ 2
I think use.... getch() function.
6th Nov 2016, 10:16 AM
Harish Nandoliya
Harish Nandoliya - avatar