- •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()
{
int n;
setlocale (LC_ALL,"Rus");
cout<<"----------------------------------------------------------\n";
for(n=1;n<=L;n++){
cout<<"Сергей\n";
}
cout<<"\n----------------------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0; }
// квадрат.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
Int main()
{
int x=1;
int y;
int i;
setlocale (LC_ALL,"Rus");
cout<<"Таблица квадратов";
cout<<"\n-----------------------------\n";
for(i=1;i<=5;i++){
y%2;
y=x*x;
cout<<"\nx="<<x;
cout<<"y="<<y;
x+=2;
}
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0;
}
// свободное падение.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
Int main()
{
float g=9.8,v,t=0.5;
int i;
setlocale (LC_ALL,"Rus");
cout<<"-----------------------------\n";
cout<<"скорость свободно падающего тела\n";
cout<<"-----------------------------\n";
for (i=1;i<=10;i++)
{
v=(g*g)*t;
cout<<"\n";
cout<<"v="<<v;
cout<<" t="<<t;
t+=0.5;
}
cout<<"\n-----------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0; }
// суммирование чисел.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
Int main()
{
int i,sum,n;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<" Вычисление Суммы положительных чисел\n";
cout<<"--------------------------------------------\n";
cout<<"Введите число:";cin>>n;
sum=0;
for(i=1;i<=n;i++)
sum=sum+i;
cout<<"Сумма первых целых положительных чисел "<<n;
cout<<"\nравна:"<<sum;
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0; }
// стоимость 100 грамм яблок.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
Int main()
{
int sum,n,m,i;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<" стоимость 100 грамм яблок \n";
cout<<"--------------------------------------------\n";
m=100;
for(i=1;i<=10;i++){
sum=m*0.04;
cout<<"\n"<<sum<<"р";
m+=100;
}
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0; }
// таблица умнажения на 7.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
Int main()
{
int pro,i;
setlocale (LC_ALL,"Rus");
cout<<"--------------------------------------------\n";
cout<<" таблица умнажения на 7 \n";
cout<<"--------------------------------------------\n";
for(i=1;i<=10;i++){
pro=7*i;
cout<<"\n7*"<<i<<"="<<pro;
}
cout<<"\n--------------------------------------------\n";
cout<<"\nДля завершения нажмите <Enter>";
getch();
return 0; }
// таблица умнажения.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using namespace std;
