Computer Science, asked by royantonyfff, 3 months ago

Write a statement to set bonus to 700 if wage is more than 2000 otherwise to 500​

Answers

Answered by misrabarnali594
0

Explanation:

good night and sweet dreams

Answered by dreamrob
0

Program in C++

#include<iostream>

using namespace std;

int main()

{

int wage;

cout<<"Enter Wage : ";

cin>>wage;

if(wage > 2000)

{

 cout<<"Bonus is 700";

}

else

{

 cout<<"Bonus is 500";

}

return 0;

}

Program in JAVA

import java.util.*;

public class MyClass

{

   public static void main(String args[])

   {

       Scanner Sc = new Scanner(System.in);

       int wage;

       System.out.print("Enter Wage : ");

       wage = Sc.nextInt();

       if(wage > 2000)

       {

           System.out.print("Bonus is 700");

       }

       else

       {

           System.out.print("Bonus is 500");

       }

   }

}

Program in PYTHON

wage = int(input("Enter Wage : "))

if wage > 2000:

   print("Bonus is 700")

else:

   print("Bonus is 500")

Similar questions