SlideShare a Scribd company logo
CORRECCION DE LA PRUEBA
EJER:1
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
inti,aux,num;
     cout<<"ingresenum";
     cin>>num;
     if(num>0)
     {
          for(i=0;i<num;i++)
          {
               aux=num%2*i;
               cout<< "el valor es:"<<aux<<endl;
               aux=aux+i;
               cout<< "el valor es:"<<aux<<endl;
          }//fin for
     }
     else
     cout<<"correcto,estas bien";
}//fin del programa
EJER:2

#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
    intmatrizj,i [6][5];
    {
        for (intj=1;j<6;j++)
        for (inti=5;i<0;i++)
        matriz=[i][j]=j*i;
    }
}//fin del programa
EJER:3

#include<stdio.h>
#include <iostream>
int main()
{
int mat[1][5];

     for (int j=0;j<5;j++)
      {
          for (inti=0;i<=5;i++)
           {
                   mat[i][j]=j*i;

                  }
     }
         for (int j=0;j<5;j++)
     {

         for (inti=0;i<=5;i++)
          {
                  printf("t%d",mat[i][j]);
                  }
         printf("nn");
     }
}
Correcion de la preueba de pro..

More Related Content

What's hot

María Dolores Dancausa. Entrevista en Expasión
María Dolores Dancausa. Entrevista en ExpasiónMaría Dolores Dancausa. Entrevista en Expasión
María Dolores Dancausa. Entrevista en ExpasiónBankinter_es
 
07 4 for반복문
07 4 for반복문07 4 for반복문
07 4 for반복문
Changwon National University
 
Dij
DijDij
Sources
SourcesSources
Sourcesyonsei
 
C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]
Future Programming
 
NSEG17 バグのはなし
NSEG17 バグのはなしNSEG17 バグのはなし
NSEG17 バグのはなし
Daichi OBINATA
 
12 2 문자열 응용
12 2 문자열 응용12 2 문자열 응용
12 2 문자열 응용
Changwon National University
 
Structure of c program | CS8251 | Programming in c | Learn Hub
Structure of c program | CS8251 | Programming in c | Learn HubStructure of c program | CS8251 | Programming in c | Learn Hub
Structure of c program | CS8251 | Programming in c | Learn Hub
Learn Hub
 
Heep implementation in c
Heep implementation in cHeep implementation in c
Heep implementation in c
HapPy SumOn
 
Media12132
Media12132Media12132
Media12132
htmrk
 
2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month Nominee2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month NomineeMohamed Yasir
 
Cpo 8
Cpo 8Cpo 8
Cpo 8
graysonbmw
 
Play fair cipher
Play fair cipherPlay fair cipher
Play fair cipher
Khawar Abbas
 

What's hot (19)

María Dolores Dancausa. Entrevista en Expasión
María Dolores Dancausa. Entrevista en ExpasiónMaría Dolores Dancausa. Entrevista en Expasión
María Dolores Dancausa. Entrevista en Expasión
 
Vcs6
Vcs6Vcs6
Vcs6
 
07 4 for반복문
07 4 for반복문07 4 for반복문
07 4 for반복문
 
Dij
DijDij
Dij
 
Correcion
CorrecionCorrecion
Correcion
 
Raceway_MVN_pg1
Raceway_MVN_pg1Raceway_MVN_pg1
Raceway_MVN_pg1
 
Sources
SourcesSources
Sources
 
Recursion prog (1)
Recursion prog (1)Recursion prog (1)
Recursion prog (1)
 
File_0001
File_0001File_0001
File_0001
 
C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]C - Pattern - Code - [Future Programming]
C - Pattern - Code - [Future Programming]
 
Lector
LectorLector
Lector
 
NSEG17 バグのはなし
NSEG17 バグのはなしNSEG17 バグのはなし
NSEG17 バグのはなし
 
12 2 문자열 응용
12 2 문자열 응용12 2 문자열 응용
12 2 문자열 응용
 
Structure of c program | CS8251 | Programming in c | Learn Hub
Structure of c program | CS8251 | Programming in c | Learn HubStructure of c program | CS8251 | Programming in c | Learn Hub
Structure of c program | CS8251 | Programming in c | Learn Hub
 
Heep implementation in c
Heep implementation in cHeep implementation in c
Heep implementation in c
 
Media12132
Media12132Media12132
Media12132
 
2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month Nominee2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month Nominee
 
Cpo 8
Cpo 8Cpo 8
Cpo 8
 
Play fair cipher
Play fair cipherPlay fair cipher
Play fair cipher
 

Viewers also liked

We Believe in Jesus
We Believe in JesusWe Believe in Jesus
We Believe in Jesus
Islamic Invitation
 
Web 3.0
Web 3.0  Web 3.0
Web 3.0
Frank ramos
 
modelo 1 a 1
modelo 1 a 1modelo 1 a 1
modelo 1 a 1
siilviavargas
 
Sportmag avril 2015 - Mam Jaiteh
Sportmag avril 2015 - Mam JaitehSportmag avril 2015 - Mam Jaiteh
Sportmag avril 2015 - Mam Jaiteh
JSF Nanterre
 
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
Canadian Patient Safety Institute
 
Drone World Expo Presentation
Drone World Expo PresentationDrone World Expo Presentation
Drone World Expo Presentation
Biren Gandhi
 
Digital citizenship (cyberbullying)
Digital citizenship (cyberbullying)Digital citizenship (cyberbullying)
Digital citizenship (cyberbullying)
amalgarn
 
El feminismo
El feminismoEl feminismo
El feminismo
humbertosan
 

Viewers also liked (8)

We Believe in Jesus
We Believe in JesusWe Believe in Jesus
We Believe in Jesus
 
Web 3.0
Web 3.0  Web 3.0
Web 3.0
 
modelo 1 a 1
modelo 1 a 1modelo 1 a 1
modelo 1 a 1
 
Sportmag avril 2015 - Mam Jaiteh
Sportmag avril 2015 - Mam JaitehSportmag avril 2015 - Mam Jaiteh
Sportmag avril 2015 - Mam Jaiteh
 
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
Utiliser la mesure comme moteur de l’amélioration: De nouveaux outils vous ai...
 
Drone World Expo Presentation
Drone World Expo PresentationDrone World Expo Presentation
Drone World Expo Presentation
 
Digital citizenship (cyberbullying)
Digital citizenship (cyberbullying)Digital citizenship (cyberbullying)
Digital citizenship (cyberbullying)
 
El feminismo
El feminismoEl feminismo
El feminismo
 

More from daquicaro

Practica y evaluacion
Practica y evaluacionPractica y evaluacion
Practica y evaluaciondaquicaro
 
Dando formato a los párrafos
Dando formato a los párrafosDando formato a los párrafos
Dando formato a los párrafosdaquicaro
 
Puebe de programacion
Puebe de programacionPuebe de programacion
Puebe de programaciondaquicaro
 
Puebe de programacion
Puebe de programacionPuebe de programacion
Puebe de programaciondaquicaro
 
Presentación1
Presentación1Presentación1
Presentación1daquicaro
 
Presentación1
Presentación1Presentación1
Presentación1daquicaro
 

More from daquicaro (20)

10 pilli
10 pilli10 pilli
10 pilli
 
999 pilli
999 pilli999 pilli
999 pilli
 
9 pilli
9 pilli9 pilli
9 pilli
 
8pilli
8pilli8pilli
8pilli
 
7dpilli
7dpilli7dpilli
7dpilli
 
Deb
DebDeb
Deb
 
Practica y evaluacion
Practica y evaluacionPractica y evaluacion
Practica y evaluacion
 
Dando formato a los párrafos
Dando formato a los párrafosDando formato a los párrafos
Dando formato a los párrafos
 
Caropro
CaroproCaropro
Caropro
 
Cristina
CristinaCristina
Cristina
 
Informe
InformeInforme
Informe
 
Informe
InformeInforme
Informe
 
Informe
InformeInforme
Informe
 
Compu
CompuCompu
Compu
 
Compu
CompuCompu
Compu
 
Puebe de programacion
Puebe de programacionPuebe de programacion
Puebe de programacion
 
Puebe de programacion
Puebe de programacionPuebe de programacion
Puebe de programacion
 
Presentación1
Presentación1Presentación1
Presentación1
 
Desiciones
DesicionesDesiciones
Desiciones
 
Presentación1
Presentación1Presentación1
Presentación1
 

Correcion de la preueba de pro..

  • 1. CORRECCION DE LA PRUEBA EJER:1 #include <iostream> #include <stdio.h> using namespace std; int main() { inti,aux,num; cout<<"ingresenum"; cin>>num; if(num>0) { for(i=0;i<num;i++) { aux=num%2*i; cout<< "el valor es:"<<aux<<endl; aux=aux+i; cout<< "el valor es:"<<aux<<endl; }//fin for } else cout<<"correcto,estas bien"; }//fin del programa
  • 2. EJER:2 #include <iostream> #include <stdio.h> using namespace std; int main() { intmatrizj,i [6][5]; { for (intj=1;j<6;j++) for (inti=5;i<0;i++) matriz=[i][j]=j*i; } }//fin del programa
  • 3. EJER:3 #include<stdio.h> #include <iostream> int main() { int mat[1][5]; for (int j=0;j<5;j++) { for (inti=0;i<=5;i++) { mat[i][j]=j*i; } } for (int j=0;j<5;j++) { for (inti=0;i<=5;i++) { printf("t%d",mat[i][j]); } printf("nn"); } }