- •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 a,b,d,res;
setlocale (LC_ALL,"Russian");
cout
<<"Пограмма проверки знаний.\n----------------------------------";
cout<<"\nВведите первое число:";cin>>a;
cout<<"\nВведите второе число:";cin>>b;
cout<<"\nВведите ответ:";cin>>d;
res=a*b;
if (res==d)
cout<<endl
<<"\nВы ответили правильно."<<endl;
else
cout<<"\nВы ответили неправильно ,правильно :"<<res;
cout<<"\nДля завершения нажмите <Enter>"
<<endl <<"----------------------------------";
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 a,b,res;
setlocale (LC_ALL,"Russian");
cout
<<"Программа вычитывания дохода по вкладу.\n----------------------------------";
cout<<"\nВведите сумму:";cin>>a;
cout<<"\nВведите срок вклада мес.:";cin>>b;
if (a<5000)
res=a+(((a/100)*10)*(b/12));
else if (a>=5000&&a<=10000)
res=a+(((a/100)*13)*(b/12));
else
res=a+(((a/100)*15)*(b/12));
cout<<"\nПолученая сумма :"<<res;
cout<<"\n----------------------------------"
<<endl <<"Для завершения нажмите <Enter>";
getch();
return 0;
}
//res=(a*13)/(100*365*b);
// вычисление площади кольца.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
#include <clocale>
#include <conio.h>
using std::cin;
using std::cout;
using std::endl;
Int main (){
float R,r,S;
setlocale (LC_ALL,"Russian");
cout<<"Ведите радиус внешней окружности";cin>>R;
cout<<"Ведите радиус внутренней окружности";cin>>r;
if(R<r)
cout<<endl<<"Вы ввели неправельнные данные";
else S=3.14*(R*R-r*r);
cout<<"\nПлощадь колца равна :"<<S;
getch();
return 0;
}
// стоимость покупки со скидкой.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <clocale>
#include <conio.h>
using std::cin;
using std::cout;
using std::endl;
Int main (){
float a,b,c;
setlocale (LC_ALL,"Russian");
cout<<"скидка при покупки больше 1000 состовляе 10%";
cout<<"\nВведите сумму покупки:";cin>>a;
c=(a/100)*10;
if(1000<a)
b=a-c;
else {b=a;
cout<<"\nСкидка не предостовляется";
}
cout<<"\nИтог:"<<b;
getch();
return 0;
}
// год основания Петровска.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <clocale>
#include <conio.h>
using std::cin;
using std::cout;
using std::endl;
Int main (){
float a;
setlocale (LC_ALL,"Russian");
cout<<"Введите год основания города Петровска:";cin>>a;
if(a==1698)
cout<<"Вы указали правельную дату";
else
cout<<"Вы указали не верную дату\n Правельная дата 1698";
getch();
return 0;
}
// сравнение двух чисел.cpp: определяет точку входа для консольного приложения.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <clocale>
using std::cin;
using std::cout;
using std::endl;
