<u>Microsoft QBasic 1.0</u>
CONST n = 30
DIM a(1 TO n) AS INTEGER
RANDOMIZE TIMER
CLS
FOR i = 1 TO n
a(i) = 1000 * RND
PRINT a(i);
NEXT i
s = 0
FOR i = 1 TO n
IF a(i) MOD 15 <> 0 THEN s = s + a(i)
NEXT i
PRINT
PRINT s
#include "stdafx.h"
#include <iostream>
#include <math.h>
#include<stdio.h>
using namespace std;
#define PI 3.14159265
int main ()
{
double a;
cout<<"Input a: ";
cin>>a;
cout<<endl;
if ( (a*cos((78.0)*PI / 180.0 ))<((0.2)*cos ( (81.0) * PI / 180.0 )) )
{
<span> cout<<"a*cos(78) < 0,2cos(81)";</span>
}else
{
if ((a*cos ( (78.0) * PI / 180.0 ))==((0.2)*cos ( (81.0) * PI / 180.0 )))
{
cout<<"a*cos(78) = 0,2cos(81)";
}else
{
cout<<"a*cos(78) > 0,2cos(81)";
}}
system("PAUSE");
return 0;}<span>
</span>
1) 4 Мб=33554432 бита
2)5 кбайт=40960 битов
3)572 байта=4576 бита=
4)754 бита=754 бита
5)120 битов=120 битов