第3章基本程序设计2周.pptVIP

  • 2
  • 0
  • 约9.93千字
  • 约 41页
  • 2017-05-21 发布于广东
  • 举报
第3章基本程序设计2周

第三章 #includestdio.h void main() { int x,i; printf(请输入一个整数,若小于3则重输:); do scanf(%d,x); while(x=2); i=2; do { while(x%i==0) { printf( %d,i); x=x/i; } i++; }while(ix); if(x!=1) printf(%d\n,x); } 假定x=24,按程序执行过程,手工演算一遍: i x x%i 动作

文档评论(0)

1亿VIP精品文档

相关文档