🔒 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.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
1,036
Guests online
5,460
Total visitors
6,496

Forum statistics

Threads
2,349,758
Posts
29,364,131
Members
1,089,317
Latest member
brightburn888
Back
Top