🔒 Closed Pa help po

Status
Not open for further replies.

JoelGokus

Eternal Poster
pa help po sa expert sa C programming paano po ito i code? salamat sasagot. Godbless

received_1252376008921245.webp
 
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,043
Guests online
949
Total visitors
1,992

Forum statistics

Threads
2,274,923
Posts
28,959,366
Members
1,233,485
Latest member
senpaikatzu_88
Back
Top