🔒 Closed Help c++

Status
Not open for further replies.
Bigyan kita ng sample idol.


#include <stdio.h>

int main(void)

{

float max=0, a;
float min=0, b;

printf("Entering 0 will terminate the sequence of input values.\n");

do{ printf("Enter Number:");

if (scanf(" %f", &a)==1);{

if(a<max){

a=max;}

if(a>min){

a=min;}

}

} while(a!=0);

printf("Your largest number was %.3f. Your smallest number was %.3f.", max, min);

Anong compiler gamit mo tol?
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 76
    Views
  • 2
    Participants
Last reply from:
Jun Andrei Belarga Scam

Trending Topics

Online now

Members online
827
Guests online
1,399
Total visitors
2,226

Forum statistics

Threads
2,292,271
Posts
29,075,825
Members
1,210,244
Latest member
grokz
Back
Top