官术网_书友最值得收藏!

Declaration

To create a new variable, we first need to declare it by saying what type of variable it is, and as we explored before, a variable type represents the content. This means that the content for the myNumber variable is a number. The keyword for whole number variables in C# is int and for different types of content, we assign a different keyword. We also have to give our variable a name; myNumber is fine for now. You can use any name you want, as long as it does not contain spaces or special characters.

主站蜘蛛池模板: 丰台区| 政和县| 休宁县| 仪征市| 海宁市| 乌恰县| 剑阁县| 盐城市| 新晃| 高台县| 北海市| 绍兴县| 青河县| 鲁山县| 苗栗县| 辉县市| 东兴市| 陆良县| 托里县| 略阳县| 新泰市| 香格里拉县| 浦县| 阳春市| 湟中县| 和田县| 宁晋县| 托里县| 万源市| 阳东县| 山阴县| 昌平区| 昆明市| 莱州市| 汤原县| 西峡县| 邯郸县| 山丹县| 上虞市| 申扎县| 朔州市|