2 no. as input and display colored output in C / C++




#include<stdio.h>
#include<conio.h>
#include<iostream.h>

int main()
{
int m,n;
clrscr();

   gotoxy(5,10);
   textcolor(RED);
   textbackground(BLUE);
   cprintf("enter 2 number");
  cin>>m>>n;
  textcolor(4);
  textbackground(BLUE);

   cprintf("numbers are = %d %d",m,n);

   getch();
   return 0;
}

No comments:

Post a Comment