For loop,Easy!!
- Write a program that allows printing numbers up to 5
#include <iostream>
using namespace std;
int main(){
for(int i;i < 6;i++){
cout<<i<<endl;
}
}
- Result:
0
1
2
3
4
5
____________________________________________________
-
*** The for loop helps in repeating the loop a specified number of times***
-
- Creat yourcode!!;