- 1

How could we print 1to10 in c++ ?

25th Sep 2017, 8:03 PM
Sid cool
3 Answers
+ 1
#include <iostream> using namespace std; int main() { int i; for(i=1;i<=10;i++) { cout<<i<<endl; } return 0; }
26th Sep 2017, 3:01 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 6
cout << "1to10";
25th Sep 2017, 8:10 PM
Andrea Simone Costa
Andrea Simone Costa - avatar
+ 1
thanks šŸ™šŸ™
26th Sep 2017, 7:42 PM
Sid cool