Answers for "print counting in c++"

C++
0

print counting in c++

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  for (int i=0; i<n; i++)
  {
    cout<<i<<"\n";
  }
  return 0;
}
Posted by: Guest on May-10-2021
0

print counting in c++

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  for (int i=1; i<n; i++)
  {
    cout<<i<<"\n";
  }
  return 0;
}
Posted by: Guest on May-10-2021
0

print counting in c++

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  for (int i=0; i<n; i++)
  {
    cout<<i<<"\n";
  }
  return 0;
}
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language