diff --git a/Project7/Project7.sln b/Project7/Project7.sln new file mode 100644 index 0000000..67f51c2 --- /dev/null +++ b/Project7/Project7.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31515.178 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project7", "Project7\Project7.vcxproj", "{3F063DCF-C9A9-445D-B1ED-4AD70599396A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Debug|x64.ActiveCfg = Debug|x64 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Debug|x64.Build.0 = Debug|x64 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Debug|x86.ActiveCfg = Debug|Win32 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Debug|x86.Build.0 = Debug|Win32 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Release|x64.ActiveCfg = Release|x64 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Release|x64.Build.0 = Release|x64 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Release|x86.ActiveCfg = Release|Win32 + {3F063DCF-C9A9-445D-B1ED-4AD70599396A}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CAC82F93-08BB-4E12-A439-A8F9197D6331} + EndGlobalSection +EndGlobal diff --git a/Project7/Project7/Project7.vcxproj b/Project7/Project7/Project7.vcxproj new file mode 100644 index 0000000..23d1251 --- /dev/null +++ b/Project7/Project7/Project7.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {3f063dcf-c9a9-445d-b1ed-4ad70599396a} + Project7 + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Project7/Project7/Project7.vcxproj.filters b/Project7/Project7/Project7.vcxproj.filters new file mode 100644 index 0000000..9327ccf --- /dev/null +++ b/Project7/Project7/Project7.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/Project7/Project7/Source.c b/Project7/Project7/Source.c new file mode 100644 index 0000000..664fee7 --- /dev/null +++ b/Project7/Project7/Source.c @@ -0,0 +1,16 @@ +// +#include +#include +#include +void main() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + float a, h, s; + printf(" : "); + scanf_s("%f", &a); + printf(" : "); + scanf_s("%f", &h); + s = a * h / 2; + printf(" : %f", s); +} \ No newline at end of file