#include<stdio.h>
#include<stdlib.h>
int main(){
Brian 發表在 痞客邦 留言(0) 人氣(12)
Input a set of number that summation of every digits in reversed type
#include<stdio.h>
Brian 發表在 痞客邦 留言(0) 人氣(2)
include<stdio.h>
include<stdlib.h>
int main(){
Brian 發表在 痞客邦 留言(0) 人氣(0)
┌──────┐
│ ↓
First Second (Next step[First])
0 1 ↑
Brian 發表在 痞客邦 留言(0) 人氣(5)
用do while 寫;
#include<stdio.h>
#include<stdlib.h>
Brian 發表在 痞客邦 留言(0) 人氣(2)
利用上一次的方法
來寫階乘
#include<stdio.h>
Brian 發表在 痞客邦 留言(0) 人氣(2)
while(1)
代表無窮迴圈 裡面的1表示true
程式就會一直無窮的run下去.
Brian 發表在 痞客邦 留言(0) 人氣(7)
#include<stdio.h>
#include<stdlib.h>
int main(){
int i=1 , j , sum=0;
Brian 發表在 痞客邦 留言(0) 人氣(45)
#include<stdio.h>
#include<stdlib.h>
int main(){
Brian 發表在 痞客邦 留言(0) 人氣(24)
printout 每一個計算結果直到變數等於1.
以下是計算範例:
Brian 發表在 痞客邦 留言(0) 人氣(4)