🔒 Closed Pa help po

Status
Not open for further replies.
Condition lang yan like declare ka lang

int steam;

print("Enter steam: ");
scanf("%d", &steam);

If (steam == 80) {
printf("low speed");
}

so on...
 
1660186002077.png
ganyan ba gusto mo?


Code:
#include <iostream>

int psi;

int main() {
   
    std::cout << "Please Enter Steam: ";
    std::cin>>psi;
   
    if (psi <= 80) {
       
        std::cout<<"Low Speed";
    }
   
    else if (psi <= 100){
        std::cout<<"High Speed";
    }
   
    else if (psi <= 100){
        std::cout<<"High Speed";
    }
   
    else {
        std::cout<<"Enter number";
    }
   
   
   

    return 0;
}
Baguhin mo nalang yung output, di ko alam eh
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 3K
    Views
  • 3
    Participants
Last reply from:
JoelGokus

Trending Topics

Online now

Members online
1,257
Guests online
4,073
Total visitors
5,330

Forum statistics

Threads
2,304,378
Posts
29,159,510
Members
1,196,774
Latest member
liimpiid
Back
Top