🔒 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
  • 89
    Views
  • 2
    Participants
Last reply from:
Jun Andrei Belarga Scam

Online now

Members online
1,113
Guests online
2,317
Total visitors
3,430

Forum statistics

Threads
2,315,679
Posts
29,183,558
Members
1,182,673
Latest member
meatmallet
Back
Top