题解列表
二维数组的转置java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
使用pow()函数求幂次方
摘要:解题思路:pow() 方法 double pow (double x,double y);参数说明:x:双精度数。底数y:双精度数。指数返回值:x 的 y 次方的值例如: pow( 3 , 4 ) ……
自定义函数之字符串反转java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
自定义函数之字符串连接java
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] args) {
S……
数字反转(不用在意什么样例2,其实就是如果是120,反转了之后就是21)
摘要:参考代码:
```c
#include
int main()
{
int n;
scanf("%d",&n);
int a,k=1,b=0;//a用来存n的每一位
if(n……
与7无关的数(自定义函数)
摘要:参考代码:
```c
#include
int m(int a)//这个函数是判断它的十进制表示法中某一位上的数字是否为7,感觉放在主函数太挤了,干脆拿出来了
{
int b=a,k……