Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36616.10 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "C_Sharp_3_2", "C_Sharp_3_2.csproj", "{5AE05804-36D4-45BB-BDD7-F4DE48D39659}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5AE05804-36D4-45BB-BDD7-F4DE48D39659}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5AE05804-36D4-45BB-BDD7-F4DE48D39659}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5AE05804-36D4-45BB-BDD7-F4DE48D39659}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5AE05804-36D4-45BB-BDD7-F4DE48D39659}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {D7D96903-C0A1-45B7-AABA-84C784E277F9}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
namespace C_Sharp_3_2
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
int f1=1, f2=1, f3, n=2;
|
||||
Console.Write("{0,5}\t{0,5}\t", f1, f2);
|
||||
f3 = f1 + f2;
|
||||
while (f3<=1000)
|
||||
{
|
||||
Console.Write("{0,5}\t", f3);
|
||||
n++;
|
||||
if (n % 5 == 0) Console.WriteLine("\n");
|
||||
f1 = f2;
|
||||
f2 = f3;
|
||||
f3 = f1 + f2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user