+ 2
#include <iostream>
using namespace std;
int main(){
for(int i=1; i<=4; i++){
cout<<i<<" ";
}
return 0;
}
+ 4
Nilla
Manav Roy could also have written
cout << "1 to 4";
This would have met the requirements of your question.
The community likes to see an effort being made by the people who ask questions, so please attach your attempt when asking for assistance.
Happy learning, I hope the answer provided helps you learn
+ 4
cout<<"1 to 4";
+ 2
Nilla
You are so very very welcome
+ 2
#include <iostream>
using namespace std;
int main(){
cout<<"1 2 3 4";
return 0;
}