Ingenier鱈a en Sistemas Computacionales
Simulaci坦n
Algoritmo congruencial cuadr叩tico
Programa que genera una serie de n炭meros pseudoaleatorios bas叩ndose en el algoritmo congrencial cuadratico, al final los muestra en pantalla.
Yoga philosophy emphasizes self-awareness, self-regulation, motivation and empathy, which are key components of emotional intelligence. Yoga practices like chitta-prasadana, kriyayoga and astangayoga help you develop these skills.
1. C# Basics 1
舒弍仂舒仂亳亶仆 舒亢亳仍 3
仂亟仍仂亞仂 1: 舒舒舒 仂仍舒仆勵亞亳亶亞 亟仍亞仆亟 于仍亢 舒仍亟舒亞 仗仂亞舒仄 弍亳.
using System;
class TestInput
{
static void Main()
{
string strName;
Console.WriteLine("Enter Your Name");
strName=Console.ReadLine();
Console.WriteLine("Your Name is {0}", strName);
}
}
仂亟仍仂亞仂 2: 丱亞仍亞亳亶仆 亞舒舒舒 1- 7 勵仍 仂仂 唏亞唏亞亟唏亟 亟仂仍仂仂 仂仆仂亞亳亶仆 亟 亟
唏亟唏 弍仂仍仂亞 勵亞 于仍亢 舒仍. (1 - Monday, 2 -Tuesday 亞 仄)
using System;
class DaysOfWeek
{
static void Main()
{
string strDow;
Console.WriteLine("Enter a number between 1 and 7 :");
strDow = Console.ReadLine();
switch(strDow)
{
case "1":
Console.WriteLine("First day of week is Sunday");
break;
case "2":
Console.WriteLine("Second day of week is Monday");
break;
case "3":
Console.WriteLine("Third day of week is Tuesday");
break;
case "4":
2. 2 C#
Console.WriteLine("Fourth day of week is Wednesday");
break;
case "5":
Console.WriteLine("Fifth day of week is Thursday");
break;
case "6":
Console.WriteLine("Sixth day of week is Friday");
break;
case "7":
Console.WriteLine("Seventh day of week is Saturday");
break;
default:
Console.WriteLine("Enter a number between 1 and 7");
break;
}
}
}
仂亟仍仂亞仂 3: 102
亳亶亞 仂仍亟仂亞 仗仂亞舒仄 弍亳.
using System;
class CalcSqr
{
static void Main()
{
int intNum = 10;
funcSqr(intNum);
Console.ReadLine();
}
static void funcSqr(int intNum)
{
int intsqr;
intsqr = intNum * intNum;
Console.WriteLine("Square of the number 10 is {0}",
intsqr);
}
}