+ 2
#include <iostream> using namespace std; int main(){ for(int i=1; i<=4; i++){ cout<<i<<" "; } return 0; }
11th Jun 2022, 5:18 AM
Muhammad Ramzan
Muhammad Ramzan - avatar
+ 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
9th Jun 2022, 10:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
cout<<"1 to 4";
11th Jun 2022, 5:28 AM
vicky394
+ 2
Nilla You are so very very welcome
9th Jun 2022, 11:48 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
#include <iostream> using namespace std; int main(){ cout<<"1 2 3 4"; return 0; }
11th Jun 2022, 9:35 AM
DS Jahnavi