Write a program to print a Table ?



Program:-

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int a=2;
clrscr();
textcolor(YELLOW);
cprintf("Table of 2 -:\n");
for(int b=1;b<=10;b++)
{
int c=a*b;
textcolor(c+1);
printf("\n");
cprintf("%d",c);
}
getch();

}

No comments:

Post a Comment

Program:- #include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int a=2; clrscr(); ...

GET UP TO 70% OFF