Code:
int c,cpl,pn,sd,vb;
cout << "\n1) Print the alphabet using a specified number of characters per line.";
cout << "\n2) Check to see if a number is prime.";
cout << "\n3) Get the sum of the digits.";
cout << "\n4) Check to see if the number is a valid base.";
cout << "\n5) Exit\n";
cout << "Choice: ";
cin >> c;
switch(c){
case 1:
cout << "How many characters per line? ";
cin >> cpl;
cout <<"a b c d e f g h i j k l m n o p q r s t u v w x y z" << endl;break;
case 2:
cout << "Enter a number to check if it is a prime number.";
cin >> pn;
cout << "You want to see if " << pn << " is prime." << endl; break;
I'm going to need to use a for loop for both of these options but as to the logic that im going to use im clueless