Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
using namespace std; int main(){ int vNum[9]; int i, num, valorInser, pos=0, j=0; for (i = 0; i < 9; i++){ cout<<"ingrese un num: "; cin>>num; vNum[i]=num; } cout<<"ingrese un nuevo num: "; cin>>valorInser; //busco la posicion donde debe ir el numero ingresado while (vNum[j]
= pos; i--){ //aqui al llegar hasta la posicion deonde debe ir el numero q se ingreso sale del for vNum[i+1]=vNum[i]; } //y aqui guardo el numero ingresado en su posicion vNum[pos]=valorInser; //aqui muestro donde se guardo el numero q se ingreso y la posicion solo para ayuda cout<<"val: "<
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)