answersLogoWhite

0


Best Answer

#include <stdio.h>

#include <conio.h>

void main()

{

char color;

clrscr();

printf("Enter character (R/G/B): ");

color= getchar();

switch (color)

{

case 'R':

printf ("Red") ;

break;

case 'G':

printf("Green");

break;

case 'B':

printf("Blue");

break;

}

getch();

}

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How would we write a program that display an equipment color one an input letter match its first letter in turbo c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you do HTML programs?

HTML is not a programming language but rather a interpreted language meaning that not all browsers see it the same. Therefore you cannot make HTML programs unless you are making an internet browser.


How you find out bugs from vb 6 project?

If you run the program and it has an error/bug the line where the error originates will be marked by color yellow... it is where the program breaks or stop...


What is the attribute that changes font type?

The font tag has an attribute called "Face" using which you can set the font type. Ex: &lt;Font face = "Verdana"&gt; will display all following text in the Verdana font. You can also set font size and color using this tag. Ex: &lt;Font face = "Verdana" color = "Red" size = "10"&gt; will display text in Verdana font, red color and 10 pixels high in size.


What is a basic color name in HTML?

The standard color for any HTML page is Black. Unless you specify otherwise, the browser would display all text inside a web page in black color font. You can specify the font type, color size etc using the &lt;Font&gt; tag that HTML provides us. Ex: &lt;Font face = "Verdana" color = "Red" size = "10"&gt; will display text in Verdana font, red color and 10 pixels high in size.


Differentiate between a monochrome and color TV camera tubes?

monochromatic means it can display only one color except black.Each pixel in Monochromatic crt contain a phosphor dot of one color whereas in color CRT the phosphor dot in each pixel contains three colors Red, green, blue(RGB).

Related questions

What is the relationship between color display prototype and e ink Triton display?

Triton is an E Ink color display that is beyond the prototype stage. It is planned to be used in ebook readers to be released towards the end of 2011.


How i will write a program in qbasic -to display your name multiple times using do whileloop?

QBASIC code/Editor Screen (Press key [F5] to make the program RUN/execute...) ==== (Pressing any key returns you straight back to the Editor screen; where you can either chose to further Edit/Re-Run/or else, Save your program.) Here is another example. CLS COLOR 15, 4, 14 PRINT "Press any key to continue" DO WHILE INKEY$ = "" LOOP FOR c = 1 TO 20 COLOR c, 0 PRINT "Replace this with the name you want to display" NEXT c COLOR 15, 0 END


Would connecting an external display such as the Apple Cinema 20 to a MacBook that only has a 6-bit color internal display allow you to view photographs in full 32 bit color?

As long as the external display has 32 bit color supported and the MacBook's graphics card supports this resolution and color depth, then this would be possible.


What color light do seach and rescue boats display?

BLUE


Is the screen in black and white, or color?

The display is black and white.


Can the color purple be use in a catholic church conference display anytime of the year?

Purple is for Lent, but that doesn't mean it can't be part of some display. It should probably not be the major color.


How does the OLED display work?

An OLED display works in a similar manner to that of an LED display, but with no backlight. This enables the monitor or screen to display deeper, more intense levels of color, particularly darker colors.


What is Steve Wozniak invention?

The Apple 1 computer. Microcomputer for use with video display. Controller for magnetic disc, recorder, or the like. Apparatus for digitally controlling PAL color display. Digitally controlled color signal generation means for use with display.


How to change computer resolution to 640x480 and 256 color bits?

In windows go to the control and select display properties and click on the settings tab and there you can choose resolution and color depth. Sometimes you cannot change to this low of a setting so if a program needs this setting right click on the shortcut for the program and choose properties and the click the compatibility tab on top. Choose 256 color mode 640x480 and click ok, it may work then.


What is a guardhouse?

A room where a color guard stores their equipment


Does a psp 5-jack component cable display color?

yes


What material is used to coat a color monitor display screen?

carbon