- 1

how to print the numbers located from 4 to 8

I enter two numbers 4 and 8 and the program must print the numbers between them Example: There is number 4 and 8 It should appear 5,6,7

21st Apr 2020, 5:51 PM
KeynerZzz
KeynerZzz - avatar
1 Réponse
+ 2
The following code will work : cin>>x>>y; for(int i=x+1;i<y;i++) cout<<i; I would suggest that you should first of all learn at least some of the basics of programming and then ask doubts related to that. That would be helpful for you only. Keep coding 🙂
21st Apr 2020, 6:06 PM
Akshay Jain
Akshay Jain - avatar