Answers for "print all number between a and b in c++"

C++
0

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 << " ";
}
}
Posted by: Guest on June-30-2021
0

print all number between a and b in c++

#include <iostream>
using namespace std;

int main(){
int a,b
cin>>a>>b
for(int i=a, i<=b
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language