answersLogoWhite

0

Everyone i am ajay Verma and i answer this question, Write this programe in note pad:-

using System;

class MyClass

{

public static void Main(string [] args)

{

int n,d,result=1,sum=0;

Console.WriteLine("Enter any Number");

n=Convert.ToInt32(Console.ReadLine());

for(;n>0;)

{

d=n%10;

Console.WriteLine(d);

n=n/10;

}

}

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

How write a program to input any number and display digits which are absent in given number?

To write a program that inputs a number and displays the digits absent in it, you can follow these steps: Convert the input number into a set of its digits. Create a set of all possible digits (0-9). Subtract the set of digits from the complete set to find the missing ones. Display the missing digits. Here’s a simple example in Python: number = input("Enter a number: ") present_digits = set(number) all_digits = set('0123456789') missing_digits = all_digits - present_digits print("Missing digits:", ''.join(missing_digits))


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


How do you write a Java program to accept a 3-digits integer number and print out the highest digit from the derived input?

The tricky part is getting the individual digits. There are basically two ways to do this: 1) Convert the number to a string, and use string manipulation to get the individual digits. 2) Repeatedly divide the number by 10. The digit is the remainder (use the "%" operator). To actually get the highest digit, initially assume that the highest digit is zero (store this to a variable, called "maxDigit" or something similar). If you find a higher digit, replace maxDigit by that.


8086 assembly language that accepts two input digits?

In 8086 assembly language, you can accept two input digits by using interrupts to read from the keyboard. You would typically use the INT 21h service with function 01h to read a character, storing each digit in a register or memory location. After reading both digits, you can convert them from ASCII to their numeric values by subtracting 30h from each character. This allows you to perform arithmetic operations on the input digits as needed.


Write a program in java to enter 3 digits or more arrange the digits of the entered number in ascending order and display the result?

public static void main(String[] args) { int val = 100; int val1 = 50; System.out.println("Number of digits in " + val + " is: " + new String(val + "").length()); System.out.println("Number of digits in " + val1 + " is: " + new String(val1 + "").length()); }

Related Questions

What is the number of possible combinations using 7 digits?

128


How many possible 4 number combinations can you get using numbers 0-9?

0000-9999 (10x10x10x10 or 104) = 10,000 possible combinations allowing for repeated digits. If you are not able to repeat digits then it's 10 x 9 x 8 x 7 or 5,040 possible combinations without repeated digits.


How many combinations of 5 are possible from 30 digits?

There are: 30C5 = 142,506


I have a Lock with 3 wheels and the digits 0 to 9 on it. what is the most combinations possible?

10 possible numbers on each wheel equals 10x10x10 or 1000 combinations possible.


Using 4 digits what is the total number of combinations for a 4 digit lock code?

If the digits can repeat, then there are 256 possible combinations. If they can't repeat, then there are 24 possibilities.


How many different number combinations are in the world?

Since a number can have infinitely many digits, there are infinitely many possible combinations.


What is the number of possible 9 digit social security numbers if the digits can't be repeated?

9x8x7x6x5x4x3x2x1 or 9! which equals 362880 possible combinations if no digits are repeated


What combinations can you make with numbers 1472580?

You can make: 1 combination containing 0 digits, 7 combinations containing 1 digits, 21 combinations containing 2 digits, 35 combinations containing 3 digits, 35 combinations containing 4 digits, 21 combinations containing 5 digits, 7 combinations containing 6 digits, and 1 combinations containing 7 digits. That makes 2^7 = 128 in all.


How combination in a 9 digit number?

There are different numbers of combinations for groups of different sizes out of 9: 1 combination of 9 digits 9 combinations of 1 digit and of 8 digits 36 combinations of 2 digits and of 7 digits 84 combinations of 3 digits and of 6 digits 126 combinations of 4 digits and of 5 digits 255 combinations in all.


Can you list all possible combinations there are from 0-9?

Perhapsf you specified the number of digits. e.g. 0-9 with two digits.


What are the possible different combinations of numbers in four digits?

If the numbers contain zeros, the total number of combinations is 10,000. You can work this out easily logically: For ten single-digit numbers (0,1,2,3,4,5,6,7,8,9) then there are 10 possible 'combinations' For numbers with 2 digits then for each possible digit in the 10s column (e.g. in the 20s range) there are another 10 possible combinations (20,21,22,23,24,25,26,27, 28,29). As there are 10 possible ranges (single digits, teens, twenties, thirties etc) there will be 10 X 10 or 100 possible combinations. using the same logic, for three digits, there will be 10 X 10 X 10 or 1000 digits. And for 4 digits there will be 10 x 10 x 10 x 10 = 10,000 possible combinations. So for a number, say, with x digits, the total number of combinations of those digits will be 10 x 10 x 10..... etc with x numbers of 10s in the calculation. You can find out the number of combinations of any set of letters or numbers in the same way. as an example, to find out, say, the possible combinations of letters in the alphabet of 26 letters, then using the same method this can be given as 26 x 26 x 26 x 26............. with 26 '26's' in a row multiplied together. This gives the staggering amount of approximately 615612 followed by 31 zeros.


How many possible combinations is there with 1379?

To calculate the number of possible combinations of the digits 1, 3, 7, and 9, we can use the formula for permutations of a set of objects, which is n! / (n-r)!. In this case, there are 4 digits and we want to find all possible 4-digit combinations, so n=4 and r=4. Therefore, the number of possible combinations is 4! / (4-4)! = 4! / 0! = 4 x 3 x 2 x 1 = 24. So, there are 24 possible combinations using the digits 1, 3, 7, and 9.