vendredi 11 juin 2021

How to mark the end of the loop?

#include<iostream>
using namespace std;

int main(){
   int n;
   int a=0;
   while(cin>>n){
      a++;
   }
 cout<<a;


return 0;
}

While using an online judge it is fine but when using vs code how can i mark the end of the loop

Aucun commentaire:

Enregistrer un commentaire