using System;
class Program {
static void Main() {
fct("Appel1");
fct("Appel2", 67, 3.1415, "hello", 8);
fct("Appel3", "bonjour", 2.7, 1729, 691, "au revoir");
}
static void fct(string str, params object[] args) {
Console.WriteLine(str);
foreach (object obj in args) {
if (obj is int) Console.WriteLine(" int:" + obj);
else if (obj is double) Console.WriteLine(" double:" + obj);
else if (obj is string) Console.WriteLine(" string:" + obj);
else Console.WriteLine(" autre type:" + obj);
}
}
}