摘要: /*将一个十进制数N转换成R进制数输出,2≤R≤16,R≠10。输入 多行。第一行指出以下一共有多少组数据,后续每行包含两个整数N和R,以空格分隔,-100000≤N≤100000,2≤R≤16,R≠10。 输出多行。每行给出转换后的R进制数*/#include<stdio.h>void swap( 阅读全文
posted @ 2016-03-08 22:23 左岸繁华右岸殇 阅读(124) 评论(0) 推荐(0) 编辑
摘要: /**编程精确计算2的N次方。(N是介于100和1000之间的整数)*//*问题代码:#include<stdio.h>#include<math.h>int main(){ int a,b; long int c; a=2; scanf("%d",&b); c=pow(a,b); printf(" 阅读全文
posted @ 2016-03-08 13:34 左岸繁华右岸殇 阅读(293) 评论(0) 推荐(0) 编辑