要了解此页面上的所有示例,您应该了解以下主题:
- 如果…否则声明
- 循环
- while循环
- 打破并继续
- 开关盒
C控制流程示例
Check whether a number is even or odd |
Check whether a character is a vowel or consonant |
Find the largest number among three numbers |
Find all roots of a quadratic equation |
Check Whether the Entered Year is Leap Year or not |
Check Whether a Number is Positive or Negative or Zero. |
Checker whether a character is an alphabet or not |
Find the sum of natural numbers |
Find factorial of a number |
Generate multiplication table |
Display Fibonacci series |
Find HCF of two numbers |
Find LCM of two numbers |
Count number of digits of an integer |
Reverse a number |
Calculate the power of a number |
Check whether a number is a palindrome or not |
Check whether an integer is prime or Not |
Display prime numbers between two intervals |
Check Armstrong number |
Display Armstrong numbers between two intervals |
Display factors of a number |
Print pyramids and triangles |
Create a simple calculator |