Hey, I wrote the code in Dev C++ but I want the same code to bewritten in C#. I
ID: 3614655 • Letter: H
Question
Hey, I wrote the code in Dev C++ but I want the same code to bewritten in C#. I copy pasted the C++ code will you be able toconvert that to C#? Please!!? Thank you.#include <iostream> #include <string> using namespace std;
int main() { string username, password; // Get a username. cout << "Enter a username :"; getline(cin, username); // Get a password. cout << "Ask for a password :"; getline(cin, password); return 0; }
#include <iostream> #include <string> using namespace std;
int main() { string username, password; // Get a username. cout << "Enter a username :"; getline(cin, username); // Get a password. cout << "Ask for a password :"; getline(cin, password); return 0; } #include <iostream> #include <string> using namespace std;
int main() { string username, password; // Get a username. cout << "Enter a username :"; getline(cin, username); // Get a password. cout << "Ask for a password :"; getline(cin, password); return 0; }
Explanation / Answer
Dear User, using System; public class Globals { public static int Main( ) { cout<<”Enter a user name:”;//Get a username getline( ); cout<<”Ask for apassword:”; getline( ); return 0; } } ITS HELPFUL TO YOU............ ITS HELPFUL TO YOU............Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.