Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- /*BASIC LOOPS (VERY IMPORTANT TO HAVE THIS KNOWLEDGE IF YOU WANT TO BECOME A PROGRAMMER*/
- /*While Loop
- int i = 0;
- while(i < 100)
- {
- cout << "i is " << i << endl;
- i++;
- }
- */
- /*For Loop
- for(int i = 0; i < 100; i++)
- {
- cout << "i is " << i << endl;
- }
- */
- /*Do While Loop
- int radius = -1;
- do
- {
- cout << "Enter a radius" << endl;
- cin >> radius;
- }while(radius <= 0);
- */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement