Array Program in C With Colorful output

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int arr[6]={19,23,34,46,57};
arr[0]=19;
arr[1]=23;
arr[2]=34;
arr[3]=46;
arr[4]=57;
for(int i=0;i<=4;i++)
{    textcolor(GREEN);
cprintf("The Array Value[%d] is %d",i,arr[i]);
printf("\n");
}
getch();

}
Output:-

No comments:

Post a Comment

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

GET UP TO 70% OFF