We've already learnt how to use int, float and char in our previous video tutorial. Now lets learn the rules…