- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
5 Posted Topics
| |
Re: #include <iostream> #include <conio.h> using namespace std; int main () for ( int i = 0; i <=9; i++ ) { cout <<"array [" << i << "] = "; cin >> array [i]; } for ( int i = 0; i <=9; i++ ) { for (int j=0 ; … | |
Re: static void Main(string[] args) { int numVal = -1; bool repeat = true; while (repeat == true) { Console.WriteLine("Enter a number between −2,147,483,648 and +2,147,483,647 (inclusive)."); string input = Console.ReadLine(); // ToInt32 can throw FormatException or OverflowException. try { numVal = Convert.ToInt32(input); } catch (FormatException e) { Console.WriteLine("Input string is … | |
Re: #include <iostream> using namespace std; int main(void){ int Input; char List[] = "States: " "\n\t1 - Virginia " "\n\t2 - Texas "; cout << List << endl; cin >> Input; switch(Input){ case 1: //insert your own code here cout << "Virginia" << endl; break; case 2: //and here cout << … | |
The End.