Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

print all number between a and b in c++

#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
for(int i=a;i <=b;i++){
    cout << i << " ";
}
}
 
PREVIOUS NEXT
Tagged: #print #number
ADD COMMENT
Topic
Name
6+7 =