Ayuda,no ejecuta
Publicado por Darrel (2 intervenciones) el 22/10/2019 02:12:32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<windows.h>
using namespace std;
int main(int argc, char**argv){
{
int fil,col,n=12;
textbackground("LIGHTBLUE");
textcolor("BLACK");
clrscr();
int k=0;
for(int fil=1; fil<=n; fil++){
if(col== fil|| col +fil ==n+1 || fil==1 || col==1 || fil==n || col==n){
textbackground(yellow);
}
else{
textbackground(WHITE);
}
printf("%4d", fil*col);
}
cout<<endl;
}
gotoxy(1,23);
textbackground("LIGHTBLUE");
textcolor("LIGHTBLUE");
textbackground(black);
return 0;
}
Valora esta pregunta


0