Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Gerardo Morales
- //Imprime del 0 al 5
- #include <iostream>
- using namespace std;
- int num;
- int main()
- {
- while (num <= 5)
- {
- cout<<num<<endl;
- num++; //Es lo mismo num=num+1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement