answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you check mob num?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

To find Armstrong number in java?

/*Program to find whether given no. is Armstrong or not. Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //use to check at last time int check=0,remainder; while(num > 0){ remainder = num % 10; check = check + (int)Math.pow(remainder,3); num = num / 10; } if(check == n) System.out.println(n+" is an Armstrong Number"); else System.out.println(n+" is not a Armstrong Number"); } }


How do you write a program in java to check a number is neon number?

class neonn { ; public static void check()throws IOException ; { ; BufferedReader br = new BufferedReader ( new InputStreamReader(System.in)); ; int num; ; System.out.println("Enter the number to be checked!"); ; num=Integer.parseInt(br.readLine()); ; int square; ; square=num*num; //squaring the number ; ; int sum=0; ; ; String sqs=Integer.toString(square); ; for(int i=0; i<sqs.length(); i++) ; sum+=Integer.parseInt(sqs.substring ( i,i+1 ) ) ; ; ; if (sum==num) //checking if the sum of the square is equal to the number entered ; System.out.println(num+" is a Neon Number!"); // if yes. It is neon ; else ; System.out.println(num+" is not a Neon number!"); //otherwise not ; ; } ; }


How do you create a string and reverse a string in visual basic?

Dim x As String x = "HELLO" Dim tmpString As String tmpString = Nothing For j = 0 To x.Length - 1 Dim int int=x.Length - 1 int=int-j tmpString=x(j) Next


Program to find reverse of given number using pointers?

#include #include void main() { int rev num=0; while(num>0) { rev num=rev num*10+num%10; num=num%10; } return rev_num; } int main(); { int num=4562; printf("reverse of number is%d",reverse digit(num)); getch(); return o; }


How do you display prime number in Microsoft visual studio 6.0?

Function is_prime(ByVal num As Integer) As Boolean If num < 0 Then num = num * -1 If num < 2 Then Return False If num Mod 2 = 0 Then Return num = 2 Dim max As Integer = Math.Sqrt(num) For div As Integer = 3 To max Step 2 If num Mod div = 0 Then Return False Next Return True End Function Sub Main() For num As Integer = 0 To 100 If is_prime(num) Then Console.Write(num) Console.WriteLine(" is prime") End If Next End Sub

Related questions

Can you get your telenor num details?

I want to check my num detail


How do you send credit from vodafone to vodafone?

yes you can transfar money in vodafone number is *132*mob num*rupee#


To find Armstrong number in java?

/*Program to find whether given no. is Armstrong or not. Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //use to check at last time int check=0,remainder; while(num > 0){ remainder = num % 10; check = check + (int)Math.pow(remainder,3); num = num / 10; } if(check == n) System.out.println(n+" is an Armstrong Number"); else System.out.println(n+" is not a Armstrong Number"); } }


How can you write a program in c plus plus to check a whether a given number is a three digit number or not?

A three digit number is any number in the range 100 through 999. So you simply check if the number is within this range: #include<iostream> int main (void) { std::cout << "Enter a whole number: "; unsigned num {}; std::cin >> num; // note: check for input errors! if (num>=100 && num<=999) std::cout << num << " has three digits.\n"; else std::cout << num << " does not have three digits.\n"; }


How do you write a c program to convert binary code to Gray code?

unsigned binary_to_gray (unsigned num) { return num ^ (num >> 1); } unsigned gray_to_binary (unsigned num) { /* note: assumes num is no more than 32-bits in length */ num ^= (num >> 16); num ^= (num >> 8); num ^= (num >> 4); num ^= (num >> 2); num ^= (num >> 1); return num ; }


Write a pseudo code to display prime numbers from 1-1000?

loop i from 0 to num check if num mod i equals 0breakelsesum = sum + numend the loopprint the sum


Cookie monster phrases?

num num num


How do you write a program in java to check a number is neon number?

class neonn { ; public static void check()throws IOException ; { ; BufferedReader br = new BufferedReader ( new InputStreamReader(System.in)); ; int num; ; System.out.println("Enter the number to be checked!"); ; num=Integer.parseInt(br.readLine()); ; int square; ; square=num*num; //squaring the number ; ; int sum=0; ; ; String sqs=Integer.toString(square); ; for(int i=0; i<sqs.length(); i++) ; sum+=Integer.parseInt(sqs.substring ( i,i+1 ) ) ; ; ; if (sum==num) //checking if the sum of the square is equal to the number entered ; System.out.println(num+" is a Neon Number!"); // if yes. It is neon ; else ; System.out.println(num+" is not a Neon number!"); //otherwise not ; ; } ; }


How do you convert a number into a degree circle?

In simple Python code: def convertToAngle(num): while True: if num < 0: num = 360 - num elif num > 360: num -= 360 else: break return num


How do you write a program in C plus plus print 1 to 10000 in Roman numerals?

#include<iostream> #include<sstream> #include<exception> std::string decimal_to_roman (unsigned num) { std::stringstream ss {}; while (num>0) { if (num>10000) throw std::range_error ( "ERROR: decimal_to_roman (unsigned num) [num is out of range]"); else if (num==10000) { ss<<"[M]"; num-=10000; } else if (num>=9000) { ss<<"[CM]"; num-=9000; } else if (num>=5000) { ss<<"[D]"; num-=5000; } else if (num>=4000) { ss<<"[CD]"; num-=4000; } else if (num>=1000) { ss<<"M"; num-=1000; } else if (num>=900) { ss<<"CM"; num-=900; } else if (num>=500) { ss<<"D"; num-=500; } else if (num>=400) { ss<<"CD"; num-=400; } else if (num>=100) { ss<<"C"; num-=100; } else if (num>=90) { ss<<"XC"; num-=90; } else if (num>=50) { ss<<"L"; num-=50; } else if (num>=40) { ss<<"XL"; num-=40; } else if (num>=10) { ss<<"X"; num-=10; } else if (num==9) { ss<<"IX"; num-=9; } else if (num>=5) { ss<<"V"; num-=5; } else if (num==4) { ss<<"IV"; num-=4; } else if (num>=1) { ss<<"I"; num-=1; } } return ss.str(); } int main (void) { for (unsigned n=1; n<=10000; ++n) { try { std::cout << n << "\t = " << decimal_to_roman(n) << std::endl; } catch (std::range_error& e) { std::cerr<<e.what()<<std::endl; break; } } }


What are the names of the house zooks in bamzooki?

num 1 is predator num 2 is the beast num 3 is mimi num 4 is peachy and num 5 is centi


How do you create a string and reverse a string in visual basic?

Dim x As String x = "HELLO" Dim tmpString As String tmpString = Nothing For j = 0 To x.Length - 1 Dim int int=x.Length - 1 int=int-j tmpString=x(j) Next