摘要: include <stdio.h> include <stdlib.h> include <time.h> int main(int argc, const char * argv[]){ srand((unsigned int)time(0)); int x; printf("enter the 阅读全文
posted @ 2024-04-08 11:46 我要成为(c语言)高手 阅读(14) 评论(0) 推荐(0)
摘要: include <stdio.h> int main(int argc, const char * argv[]){ int n,m,j,i,t; printf("please enter the number of numbers:"); scanf("%d",&n); int a[n]; for 阅读全文
posted @ 2024-04-06 14:12 我要成为(c语言)高手 阅读(18) 评论(0) 推荐(0)
摘要: include <stdio.h> double f(double n,double m){ if (m==0) { return 1; } else{ return f(n,m-1)*n; } } int main(int argc, const char * argv[]){ double a, 阅读全文
posted @ 2024-04-06 11:26 我要成为(c语言)高手 阅读(16) 评论(0) 推荐(0)
摘要: /This is my homework today to judge a number whether it's a palindrome./ /Most of us use array to solve the problem, but I find a way do not need an a 阅读全文
posted @ 2024-02-23 14:32 我要成为(c语言)高手 阅读(17) 评论(0) 推荐(0)
摘要: /This is the first code I wrote after learning c,and I learnt the first coding skill that is using array to solve problems. 😃/ /My prof was teaching 阅读全文
posted @ 2024-02-22 12:06 我要成为(c语言)高手 阅读(21) 评论(0) 推荐(0)