到目前为止,我们已经了解了以下主题:
- 变量和常量
- 资料类型
- C编程中的输入和输出
- 经营者
为了更好地理解这些主题,我们创建了一些示例。
在阅读这些示例之前,建议您尝试自行创建这些程序。
我们了解,如果您只是编程新手,那么编程可以从一开始就可以。在这种情况下,请仔细阅读下面的每个示例,看看您是否可以理解它们。完成后,尝试自行编写这些程序。
例子
C program to print a sentence |
C program to print an integer entered by the user |
C program to add two integers entered by the User |
C program to multiply two floating-point numbers |
C program to find ASCII value of a character entered by the user |
C program to find quotient and remainder of Two Integers |
C program to find the size of int, float, double and char |
C program to demonstrate the working of keyword long |
C program to swap two numbers |