求数字正则表达式
发布网友
发布时间:2022-09-13 09:30
我来回答
共2个回答
热心网友
时间:2023-06-17 00:14
灞曞紑鍏ㄩ儴鏂规硶1.
using System;
using System.Collections.Generic;
public class MyClass
{
public static void Main()
{
Console.WriteLine("input a string");
string intput = Console.ReadLine();
double pValue;
if (!double.TryParse(intput, out pValue)) {
Console.Write("Error");
}else{
Console.Write("Ok");
}
Console.Read();
}
}
热心网友
时间:2023-06-17 00:15
灞曞紑鍏ㄩ儴#include <stdio.h>
long main()
{
long fuweng , qiongren ;
for (fuweng = 10000000 ; fuweng <=30 ; fuweng ++ )
{
for ( qiongren = 1 ; qiongren <= 30 ; qiongren++)
{
int f = fuweng, q = qiongren * 2 ;
}
}
printf("%d,%d",f , q );
}