#include #include using namespace std; int main() { //Challenge #1: Print 1 2 3 4 5 6 7 8 9 10 int i=1; //call the variable whatever you want. while ( i <= 10 ) { cout << i << " "; i = i + 1; } cout << endl; cout << endl; //Challenge #2: Do it backwards, yell blastoff! at end. // 10 9 8 7 6 5 4 3 2 1 BLASTOFF!!! int j = 10; while ( j > 0 ) { cout << j << " "; j = j - 1; } cout << "BLASTOFF!!!!" << endl; cout << endl; cout << endl; //Challenge #3: Say the alphabet: a b c d e f .... char c; c = 'a'; while (c <= 'z') { cout << c << ", "; c = c + 1; } cout << "Next time won't you sing with me! " << endl; cout << endl; cout << endl; //Challenge #4: Count by 2's up to 20: 2 4 6 8 10 12 14 16 18 20 int k = 2; while (k <= 20) { cout << k << ", "; k = k + 2; } cout << endl; cout << endl; //Challenge #5: Ask for two numbers, first one smaller than 2nd: //example: 12, 17. Print: 12 13 14 15 16 17 int start, end, counter; cout << "Please enter start of range: " << endl; cin >> start; cout << "Please enter end of range: " << endl; cin >> end; counter = start; while (counter <= end) { cout << counter << ", "; counter = counter + 1; } cout << endl; cout << endl; //Challenge #6: compute 1+2+3+...+100 int sum = 0; int inc = 1; while (inc <= 100) { sum = sum + inc; inc = inc + 1; } cout << "The sum from 1 to 100 is: " << sum << endl; cout << endl; cout << endl; //Challenge #7: Ask user how many fornite skins they have purchased. //Then, ask them for the price of each skin, one by one. //After getting all the prices, tell them the total cost in Vbucks. return 0; }