Skip to content

Armstrong Numbers between 1-1000.#1

Open
prinz05 wants to merge 810 commits intoprinz05:masterfrom
iam-abbas:master
Open

Armstrong Numbers between 1-1000.#1
prinz05 wants to merge 810 commits intoprinz05:masterfrom
iam-abbas:master

Conversation

@prinz05
Copy link
Owner

@prinz05 prinz05 commented Oct 22, 2020

#include<bits/stdc++.h>
using namespace std;

int main()
{
for(int i=2; i<1000; i++)
{
int n=i;
int temp=0;

	while (n!=0)
	{
		int rem=0;
		
		rem = n % 10;
		temp += pow(rem, 3);
		n /= 10;
	}
	
	if(i==temp)
	cout<<i<<"\n";
	
}

}

probot-auto-merge bot and others added 30 commits October 27, 2019 22:05
Added insertion sort in java using generics
Added a C code for balanced parenthesis check
Balanced_Parenthesis_check
It is Shortest Job First CPU Scheduling Algorithm written in CPP used in the Operating Systems.
Created a python file for the Egg Dropping Puzzle
Created a python file for the Egg Dropping Puzzle
This repository contains programs on Bubble sort, Insertion sort, and Selection sort written in Kotlin programming language
This repository contains programs written in CPP, Javascript, Python to decrypt or encrypt Caesar Cipher
This repository contains a list of programs about the linked list and its various operations usually performed on the linked lists written in the C++ Programming Language.
Largest rectangle in histogram using stack
It contains some interesting programs and data structures written in the python programming language.
probot-auto-merge bot and others added 30 commits November 4, 2019 16:18
Creating dijkstra's algo implementation in cpp
weightedjobscheduling.cpp
Naive Pattern Searching algo in python.
Creating processes using multi programming in python which can scheduled in shortest job first manner.
Add sjfmultiprocessing.py
Python program to check a graph is bipartite or not.
maximumbipartitematching.py
 A dynamic programming based C program to  find length of the shortest super sequence.
shotestcommonsupersequence.py
A cpp solution of word breaking problem solution.
A python solution of dice throw problem.
Searching a element in a array.
Balanced and Unbalanced Expressions using Stack
Create stable-marriage-pairing.py
Create stable-matching-using-randomization.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.