Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
443 B
0
Indexable
Never
#include <iostream>
using namespace std;
#include <SFML/Graphics.hpp>
#include <conio.h>
#include <stdio.h>
#include <cstdlib> 
#include <time.h> 
#include <cmath>


int main()
{
	int a;

	int suma = 0;

	int b[8] = {}; // массив для перевода

	cin >> a;

	for (int i = 0; i < 8; i++)
	{
		b[i] = a % 2;
		a /= 2;

		

	}

	for (int i = 0; i < 8; i++)
	{
		if (b[i] == 1)
		{
			b[i] = 0;
			
Leave a Comment