Jump to content

Считаем До...


DryMind
 Share

Recommended Posts

//C++ console application

 

#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <locale.h>
#include <iostream>

using namespace std;

void main()
{
int i, a[2];
setlocale(LC_ALL,"Rus");
for (i=0; i<=30; i++)
if (i==abs(-160/16)) a[0]=i;
else if (i==(pow(4,2)+10)) a[1]=26;
cout<<"Скучно, а что до счёта - уже ";
for (i=0;i<2;i++) cout<<a;
cout<<"!\n";
_getch();

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...