Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Spring 2017 Project 2 v.03
//gcc 5.4.0 #include <stdio.h> Start Program: int numOne; int numTwo; int numThree; int v1=0; int v2=2; PRINT "Input 3 integers" READ numOne,numTwo,and numThree COMPUTE minumum numbers if(numOne<=numTwo&&numOne<=numThree) printf("%d is the minimum number",numOne); else if(numTwo<=numOne&&numTwo<=numThree) printf("%d is the minimum number",numTwo); else printf("%d is the minimum number",numThree); COMPUTE maximum numbers if(numOne>=numTwo&&numOne>=numThree) printf("%d is the maximum number",numOne); else if(numTwo>=numOne&&numTwo>=numThree) printf("%d is the maximum number",numTwo); else printf("%d is the maximum number",numThree); COMPUTE positive numbers printf("Positive Numbers:"); if(numOne>=v1) printf("%d,",numOne); if(numTwo>=v1) printf("%d,",numTwo); if(numThree>=v1) printf("%d\n",numThree); COMPUTE negative numbers printf("Negative Numbers:"); if(numOne<=v1) printf("%d,",numOne); if(numTwo<=v1) printf("%d,",numTwo); if(numThree<=v1) printf("%d\n",numThree); COMPUTE All Even Numbers printf("Even Numbers:"); if(numOne%2==v1) printf("%d,",numOne); if(numTwo%v2==v1) printf("%d,",numTwo); if(numThree%v2==v1) printf("%d\n",numThree); COMPUTE All Odd Numbers printf("Odd Numbers:"); if(numOne%2!=v1) printf("%d,",numOne); if(numTwo%v2!=v1) printf("%d,",numTwo); if(numThree%v2!=v1) printf("%d\n",numThree); COMPUTE All equal numbers printf("Equal Numbers:"); if(numOne==numTwo) printf("%d,%d",numOne,numTwo): else if(numTwo==numThree) else if(numThree==numOne) else if(numOne==numTwo&&numTwo==numThree) printf("%d,%d,%d",numOne,numTwo,numThree) SORT all numbers int main(void) { printf("Hello, world!\n"); return 0; }
run
|
edit
|
history
|
help
0
MatrixMul_shortxshort
Project 4 v.1
A_141110_Perfecto
18BCE2182 ASSESS_1 Q2-3
CpointfunProd
than mine time's ocean as real white shakedown marine is mistake
MatrixMul_shortxshort
formatting_input_and_output
ele888 lab1 run - graphs
no output