File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ // ================================================
2+ // Language: C++ / Cpp
3+ // Topic : [While loop]
4+ // Problem : 👉👉 [1]
5+ // Want : Print1toN_while.cpp
6+ //
7+ // ================================================
8+ #include < iostream>
9+ using namespace std ;
10+ int main (){
11+ int n ;
12+ cout<<" Enter Number " ;
13+ cin>> n;
14+ int i = 1 ;
15+ while (i<=n){
16+ cout << i << " " << endl;
17+ i++;
18+
19+ }
20+ return 0 ;
21+ }
Original file line number Diff line number Diff line change 1+ // ================================================
2+ // Language: C++ / Cpp
3+ // Topic : [ForLoop]
4+ // Problem : 👉👉 [1]
5+ // Want :
6+ //
7+ // ================================================
8+ #include <iostream>
9+ using namespace std;
10+ int main(){
11+ return 0 ;
12+ }
You can’t perform that action at this time.
0 commit comments