Java程序用于检查TPP学生是否有资格参加面试
请考虑下表了解不同公司的资格标准 -
CGPA | 的中文翻译为:绩点平均成绩 |
符合条件的公司 |
---|---|---|
大于或等于8 |
谷歌、微软、亚马逊、戴尔、英特尔、Wipro |
|
大于或等于7 |
教程点、accenture、Infosys、Emicon、Rellins |
|
大于或等于6 |
rtCamp、Cybertech、Skybags、Killer、Raymond |
|
大于或等于5 |
Patronics、鞋子、NoBrokers |
让我们进入 java 程序来检查 tpp 学生参加面试的资格。
方法1:使用if else if条件
通常,当我们必须检查多个条件时,我们会使用 if else if 语句。它遵循自上而下的方法。
语法
if(condition 1) { // code will be executed only when condition 1 is true } else if(condition 2) { // code will be executed only when condition 2 is true } else { // code will be executed when all of the above condition is false } 登录后复制