Skip to content

C2-803100/Swapping_Button_Color_using_OnClick_Event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Problem Statement:-

WAP to create three different colored buttons(BTN1,BTN2,BTN3) and one Rotate button. On click of the Rotate button, color of the buttons should rotate clockwise.

Requirement :-

1: Create three buttons with red, green, yellow color respectively. 2: Write a text on button according to their color. 3: Create one button and name it as "Rotate". 4: On click of Rotate button the color of all the three buttons should be changed. Like, the color of 2nd button should be changed to color of 1st button, the color of 3rd button should be changed to color of 2nd button, and the color of 1st button should be changed to color of 3rd button. 5: Make sure with each click of Rotate button, the colors get rotated clockwise.

Expected Result :-

When clicked the red button, the color of the button changes to red, When clicked the green button, the color of the button chages to green When clicked on yellow button, the color of the button changes to yellow. When clicked on rotate button, the color of all the buttons should rotate in clockwise direction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published