What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 17:50:03
armstrong numbers problem java
// Java program to print all armstrong numbers between given range import java.util.Scanner; public class ArmstrongNumbersGivenRange { public static void main(String[] args) { int number, startNumber, endNumber, a, rem, n, count = 0; S... Add solution -
Python 2021-11-19 13:28:15
angstrong numebr ron python
# Python program to check if the number is an Armstrong number or not # take input from the user num = int(input("Enter a number: ")) # initialize sum sum = 0 # find the sum of the cube of each digit temp = num while temp > 0: digit = t... Add solution -
Java 2021-11-09 22:28:11
Java program to print armstrong number from 1 to 1000
public class ArmstrongBetween1To1000 { public static void main(String[] args) { int number, n, total = 0; System.out.println("Armstrong number between 1 to 1000: "); for(int a = 1; a <= 1000; a++) { numb... Add solution -
C 2021-11-06 17:44:09
c program to check the number is armstrong or not
#include <stdio.h> int main() { int num, originalNum, remainder, result = 0; printf("Enter a three-digit integer: "); scanf("%d", &num); originalNum = num; while (originalNum != 0) { // remainder c... Add solution -
Java 2021-10-02 09:26:02
amstrong
//Java program to check whether a number is armstrong or notimport java.util.Scanner;public class armstrong_number_or_not{ public static void main(String[] args) { //scanner class declaration Scanner sc = new Scanner(System.in); //input from user Syst... Add solution