- •Int main()
- •Int main()
- •Int choice(0);//Здесь сохранитть выбранное значение
- •Int main()
- •Int choice(0);//Здесь сохранитть выбранное значение
- •Int main()
- •Int choice(0);//Здесь сохранитть выбранное значение
- •Int main()
- •Int main()
- •Int main() {
- •Int choice(0);//Здесь сохранитть выбранное значение
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main (){
- •Int main (){
- •Int main (){
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main()
- •Int main(){
- •Int main(){
- •Int main(){
- •Int main() {
- •Int main(){
- •Int main(){
- •Int main(){
- •Int main(){
- •Int main(){
- •Int main(){
- •Int main (){
- •Int main(){
- •Int main(){
- •Int main (){
- •Int main(){
- •Int main(){
Int main()
{
float C,f,c;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------";
c=-10;
C=30;
cout<<"\nВас приветствует программа соответстивия\nтеператур в градусах Цельсия и Фарингейта \n";
cout<<"--------------------------------------------";
do{
f=(float)9/5*c+32;
cout<<"\nF="<<f<<" C="<<c;
c+=1;}
while (c<=C);
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;
}
// максимальное число.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
#include <stdio.h>
using namespace std;
Int main()
{
int a,max;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<"Определение максимального числа";
cout<<"\nв последовательности полажительных чисел";
cout<<"\nВвдите числа.Для завершения введите ноль\n";
cout<<"--------------------------------------------\n";
cout<<"=>";cin>>a;
max=a;
while (a>0){
if (a>max)max=a;
cout<<"=>";cin>>a; }
cout<<"\nМаксимальное число:"<<max;
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;
}
// простое число.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
#include <stdio.h>
using namespace std;
Int main()
{
int a,res;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<"--------------------------------------------\n";
do{
cout<<"\Введите число>";cin>>a;
if (res=a%2)
cout<<"\nчисло "<<a<<" простое";
else
cout<<"\nчисло "<<a<<" не является простым";}
while (a>0);
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;}
// Задачи while 1.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
#include <stdio.h>
using namespace std;
Int main()
{
float x,dx,x1,x2,y;
setlocale (LC_ALL,"Rus");
x1=-4;
x2=4;
dx=0.5;
x=x1;
cout<<"--------------------------------------------\n";
cout<<" Таблица значений x и y\n";
cout<<"--------------------------------------------\n";
while (x<x2){
y=x*x+2;
cout<<"\nx="<<x<<" y="<<y;
x+=dx;}
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;}
// задачи while 2.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
#include <stdio.h>
using namespace std;
Int main()
{
float p,t,el;
int n;
p=0;
n=1;
el=1;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<"Задате точность вычисления Пи ";cin>>t;
cout<<"Вчисление Пи с точностью "<<t;
while (el>=t){
el=1/(2*n-1);
if((n%2)==0)
p-=el;
else p+=el;
n++;}
p=p*4;
cout<<"\nЗначение Пи с точностью равно"<<t<<", "<<p;
cout<<"\nпронуммеро членов ряда "<<n;
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;}
// задачи while 3.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
#include <stdio.h>
using namespace std;
