No products in the cart.

How to create random program for …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

How to create random program for three letteres (A,B, T)
  • 1 answers

Shreyash Rakhunde 3 years, 4 months ago

#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter numbers:"); scanf("%d %d %d",&a,&b,&c); if ((a>=b)&&(a>=c)) { if (b>=c) { printf("\nDesc : %d %d %d",a,b,c); printf("\nAsc : %d %d %d",c,b,a); } else { printf("\nDesc : %d %d %d",a,c,b); printf("\nAsc : %d %d %d",b,c,a); } } else if ((b>=a)&&(b>=c)) { if (a>=c) { printf("\nDesc : %d %d %d",b,a,c); } } else { if (b>=a) { printf("\nDesc : %d %d %d",c,b,a); printf("\nAsc : %d %d %d",a,b,c); } else { printf("\nDesc : %d %d %d",c,a,b); printf("\nAsc : %d %d %d",b,a,c); } } getch(); }
http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App