top of page

C# Placeholder

  • Admin
  • May 13, 2024
  • 1 min read

When you define a seri in C#, it follows the variables in the list provided. The seri is defined inside the Console.Writeline ("{1}-{0}",word2,word1).



string word1 = "C#";
string word2 = "Programming";
Console.WriteLine("{0}-{1}",word2,word1);
// Output
// word2 is the first member of the seri
// word1 is the second member of the seri
// there is "-" sign between word2 and word1
// the result is Programming-C#


If you write Console.Writeline ("{0}-{1}",word2,word1); the result will be "C#-Programming"


Another example


int a = 5;
int b = 12;
int c = -7;
Console.Write("{2} {0} {1}", c, a, b);
// Output 12 -7 5 

Recent Posts

See All
List the files in the folder by using TCL

Here is a simple script to list all the files in a folder with or without file extension. set folder [tk_chooseDirectory -title "Select a folder"] if {$folder eq ""} { puts "No folder selected."

 
 
 
Solutions in Nastran

Here's a concise definition table for every solution type (SOL) in NASTRAN, focusing on commonly used ones. Each entry includes the SOL number, solution type, and a brief description. SOL Number Name

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page