1. 程式人生 > >C語言基礎:if條件語句使用演示的代碼

C語言基礎:if條件語句使用演示的代碼

條件 好的 eight 使用 朋友 include c語言 == main

學習期間,將寫內容過程較好的內容段備份一下,下邊內容段是關於C語言基礎:if條件語句使用演示的內容,應該是對各位朋友有所用。
#include <stdio.h>

void main ()
{
int age = 21;
int height = 73;

if (age == 21)
printf("User‘s age is 21n");

if (age != 21)
printf("User‘s age is not 21n");

if (height == 73)
printf("User‘s height is 73n");

if (height != 73)
printf("User‘s height is not 73n");
}





C語言基礎:if條件語句使用演示的代碼