GithubHelp home page GithubHelp logo

kplanisphere / one-dimensional-arrays-in-c Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 359 KB

Problemario 6 - Programacion 1

Home Page: https://linktr.ee/planisphere.kgz

C 100.00%
array-manipulation beginner-friendly c-programming problem-solving programming-education school-assignment sorting-algorithms one-dimensional-arrays

one-dimensional-arrays-in-c's Introduction

ARREGLOS UNIDIMENCIONALES

Problemario 6 - Programacion 1

  1. Escriba un programa que lea dos arreglos de n¨²meros enteros ordenados ascendentemente y luego almacene en un tercer arreglo la lista ordenada de ambos. Por ejemplo, su el primer arreglo tiene los n¨²meros 1,3,6,9,17 y el segundo tiene 2,4,10,17, el tercer arreglo debe contener 1,2,3,4,6,9,10,17,17. Muestre en pantalla la impresi¨®n del arreglo resultante.

  2. Escriba un programa que lea un arreglo de n¨²meros enteros, y un numero x, y escriba en la pantalla todos los ¨ªndices del arreglo donde esta x. por ejemplo, si el arreglo es 1,2,3,100,23,2,2,1 y x es 2. El programa debe escribir: 1,5,6.

  3. Escriba un programa que almacene en un arreglo los primeros 80 n¨²meros primos y los visualice.

  4. Implemente un programa en lenguaje C que:

    • Solicite el tama?o de dos vectores.
    • Lea cada uno de los dos vectores.
    • Realice el producto punto de los vectores le¨ªdos.
    • Muestre el resultado.
  • El producto punto se define:

$$\begin{bmatrix} 2\\ 3\\ 5\\ 4\\ 6\\ \end{bmatrix}+\begin{bmatrix} 4\\ 8\\ 1\\ 2\\ 5\\ \end{bmatrix}=2\times 2+3\times 8+5\times 1+4\times 2+6\times 5=8+24+5+8+30=75$$

  1. Implemente un programa en lenguaje C que:
    • Lea n¨²meros hasta teclear el cero.
    • Guardar en un arreglo los n¨²meros negativos le¨ªdos.
    • Guardar en un arreglo los n¨²meros positivos le¨ªdos.
    • Mostrar ambos arreglos.

one-dimensional-arrays-in-c's People

Contributors

kplanisphere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.