使用for循环按升序对3个数字进行排序 [英] Sort 3 numbers by ascending order with a for loop

查看:329
本文介绍了使用for循环按升序对3个数字进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是c ++ bigginer,我想知道如何使用for循环对数字进行排序

任何人都可以实现一个可以对三个数字进行排序的代码

假设我有3个整数a = 10,b = 2,c = 8

让它变得简单,因为它可以

hi guys i'm a c++ bigginer and i wonderd how to sort numbers using a for loop
can any one implemnt a code that can sort three numbers ascending
let say i have 3 integers a=10,b=2,c=8
make it easy as it can

推荐答案

排序是一门艺术,因为它有不同的算法。首先要理解排序排序算法的维基百科是一个很好的起点。



PS:学会礼貌而不厚颜无耻
Sorting is an art, because there are different algorithms for it. To start with understand sorting the wikipedia of sorting algorithms is a good starting point.

PS: learn to be polite and not cheeky


这篇关于使用for循环按升序对3个数字进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆