C Sharp

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C Sharp as PDF for free.

More details

  • Words: 116
  • Pages: 1
system.console.writeline("welacom user"); // ---------------------------------------------------------system.console.writeline("welcome to my web site"); //--------------------------------------------------------console.writeline("amr {0} {1}", 2 + 3, 105); // ---------------------------------------------------------console.writeline("ahmed\\argawy"); // ---------------------------------------------------------console.writeline("\"ahmed argawy\""); // ---------------------------------------------------------console.writeline("your salary is{0:c5}", 4100); // ---------------------------------------------------------console.writeline("your salary is{0:n}", 4100); // ---------------------------------------------------------console.writeline("amr \a argawy"); // ---------------------------------------------------------console.writeline("enter your name"); string x = console.readline(); console.writeline("welcome " + x); // ---------------------------------------------------------console.writeline("enter your age"); int y = int.parse(console.readline()); console.writeline("your age is" + y); // ----------------------------------------------------------console.writeline("enter your salar "); int z = int.parse(console.readline()); console.writeline("salary is {0:c}", z); //-----------------------------------------------------------console.writeline("plz enter acharacter"); int a = console.read(); console.writeline(a); //-----------------------------------------------------------console.writeline("enter your name"); string k = console.readline(); // k = console.readline(); console.writeline("enter yuor password"); string c = console.readline(); if((k == "ahmed") && (c == "123456")) { console.writeline("welcome ahmed"); } else { console.writeline("invaid name or password"); }

Related Documents

C Sharp
November 2019 24
C-sharp,
November 2019 28
C Sharp Fundamentals
June 2020 7
C Sharp Interview
November 2019 12
Java Vs C Sharp
May 2020 16