摘要:
#include<stdio.h>main(){double s=0,t;int i,n,j;printf("please input the number of n:");scanf("%d",&n);for(i=1;i<=n;i++){t=1;for(j=1;j<=i;j++)t=t*j;s=s 阅读全文
摘要:
#include<stdio.h>void main(){long int a,b,c;printf("Please enter a optional fraction(a/b):");scanf("%ld%ld",&a,&b);printf("It can be decomposed to:"); 阅读全文
摘要:
#include<stdio.h>main(){int i,x,y,last=1;printf("Input x and y:\n");scanf("%d %d",&x,&y);for(i=1;i<=y;i++)last=last*x%1000;printf("The last three digi 阅读全文
摘要:
#include<stdio.h>main(){int i,t,k,a[3]={0};printf("There are following Armstrong number smaller than 1000:\n");for(i=2;i<1000;i++){t=0;k=i;while(k){a[ 阅读全文
摘要:
#include<stdio.h>void main(){long mul,number,k,a,b;printf("It exists following automorphic nmbers small than 100000:\n");for(number=0;number<100000;nu 阅读全文