top of page

C# Console.Read()

  • Admin
  • Jun 7, 2024
  • 1 min read

This code only allows you input one character.


Console.WriteLine("Input a character:");
int ch = Console.Read();
Console.Write("Character in  ASCII code: {0}", ch);

For example when you type A

the output will be 65 in ASCII code.


Recent Posts

See All
Comparison CROD, CBAR and CBEAM

CROD, CBAR and CBEAM are one of the most popular 1d elements in Nastran. Reflecting real behaviour of structural is crucial for FEM. So,...

 
 
 

Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación

© 2023

 
bottom of page