Cr

271 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
271
On SlideShare
0
From Embeds
0
Number of Embeds
69
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cr

  1. 1. El primer trabajo#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#include <iostream>#include <stdio.h>using namespace std;int main(){intmatrizj,i [6][5]; {
  2. 2. for (intj=1;j<6;j++)for (inti=5;i<0;i++)matriz=[i][j]=j*i;}//fin del programa#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;
  3. 3. } } for (int j=0;j<5;j++) { for (inti=0;i<=5;i++) { printf("t%d",mat[i][j]); } printf("nn"); }}

×