Question
Nested Loops C++ Need it in 15 minutes please Program 1: The following program generates displays all two-letter .com internet domain names, 13 names per
Nested Loops C++ Need it in 15 minutes please
Program 1:
The following program generates displays all two-letter .com internet domain names, 13 names per line.
#include
using namespace std;
int main()
{
char letter1, letter2;
int count=0;
cout<<"***Two letter domain names**"<< endl;
cout<<"**************"< for(letter1='a'; letter1<='z';letter1++) { for (letter2='a';letter2<='z';letter2++) { cout < count++; if(count%13==0) cout< } cout< } } 1.Type in the above program, add your name and date, compile and run the program 2.How many times does the outer loop execute? 3.How many times does the inner loops execute? 4.Modify the program to include two-character .com names where the second character can be a letter or a number, as in a2.com
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started