print counting in c 2b 2b

Solutions on MaxInterview for print counting in c 2b 2b by the best coders in the world

showing results for - "print counting in c 2b 2b"
Audrey
08 Mar 2016
1#include<iostream>
2using namespace std;
3
4int main()
5{
6  int n;
7  cin>>n;
8  for (int i=1; i<n; i++)
9  {
10    cout<<i<<"\n";
11  }
12  return 0;
13}
Selim
03 May 2019
1#include<iostream>
2using namespace std;
3
4int main()
5{
6  int n;
7  cin>>n;
8  for (int i=0; i<n; i++)
9  {
10    cout<<i<<"\n";
11  }
12  return 0;
13}
Lilly
26 Jan 2018
1#include<iostream>
2using namespace std;
3
4int main()
5{
6  int n;
7  cin>>n;
8  for (int i=0; i<n; i++)
9  {
10    cout<<i<<"\n";
11  }
12  return 0;
13}