top of page

#include<iostream>

#include <bits/stdc++.h>

#include<climits>

#include <stdio.h>     

#include <locale.h>     

using namespace std;

int main() {

            int x;

  

   int a = CHAR_BIT*sizeof(x);

   cout<<"INTRODUSCA VALOR PARA X:",cin>>x;

   stack<bool> s;

   cout << "el numero es  : " << x << endl;

   for (int i=1; i<=a; i++) {

      s.push(x%2);

      x = x/2;

   }  

   cout << "el numero de  bits es a un byte : " << CHAR_BIT << endl;

   for (int i=1; i<=a; i++) {

      cout << s.top();

      s.pop();

      if (i % CHAR_BIT == 0)

         cout << " ";

   }

   cout << "\n\nEl valor mínimo de short int.\n\n\n\n\n :" << SHRT_MIN;

 

            setlocale (LC_MONETARY,"");

  struct lconv * lc;

  lc=localeconv();

  printf ("MONEDA LOCAL DE SU PAIS SIMBOLO: %s\n",lc->currency_symbol);

  printf ("SImbolo internacional de moneda: %s\n\IIIEE-2\n",lc->int_curr_symbol);

  return 0; }
  

evp9.png

© 2023 para Skyline

Creado conWix.com

bottom of page