c++ - I want to know how to perform input and output operations in C# -


i want know how perform input , output operations in c#. know c++ want write code in c#. basic code in c++. want write same thing using c# language.

#include<iostream.h> #include<conio.h> void main() {     clrscr();     char name;     cout<<"\n enter name";     cin>>name;     cout<<"hello!!"<<name<<": \t ";     getch(); } 

you can use console.writeline , console.readline:

static void main(string[] args) {     console.clear()      string name;      console.writeline("enter name: ");      name = console.readline();      console.writeline("hello! {0}:\t", name);      console.readkey(); } 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -