Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

i have some problem

0 votes
asked Sep 22, 2018 by muhammad aashir
#include<iostream.h>
#include<conio.h>
 int main()
 {
     int sal, b;
     cout<<"enter your salery";
     cin>>sal;
     it(sal>=1000)
     {
         b=(sal*10)/100;
         cout<<"bonus;"<<b;
         sal=sal+b;
     }
     cout<<"salery is"<<sal;
     getch();
     return(0);
 }

1 Answer

+1 vote
answered Sep 22, 2018 by Bubba Whale (250 points)

https://onlinegdb.com/BkniteEFX

#include<iostream>
#include<conio.h>
using namespace std;
 int main()
 {
     int sal, b;
     cout<<"Enter your salary: ";
     cin>>sal;
     if(sal>=1000)
     {
         b=(sal*10)/100;
         cout<<"Bonus: "<<b<<endl;
         sal=sal+b;
     }
     cout<<"Salary is: "<<sal;
     getch();
     return(0);
 }

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...