1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hichkok12 [17]
3 years ago
5

write a program using if condition and print fail and try again if student marks are less than 33 using if condition and print f

ail and try again if student marks are less than 33
Computers and Technology
1 answer:
Aliun [14]3 years ago
6 0

Answer:

Following are the program to this question:

#include <iostream>//defining a herader file

using namespace std;

int main()//defining main method

{

   int marks, i=35;//defining integer variables

   cout<<"enter your marks in a percent: ";//print message

   cin>>marks;//input marks value

   if(marks<i)//defining if block that checks marks less then i

   {

       cout<<"fail and try again";//print message

   }

   else//defining else block

   {

       cout<<"You are qualified";//print message

   }

   return 0;

}

Output:

enter your marks in a percent: 33

fail and try again

Explanation:

In the above-given, C++ language code inside the main method "marks and i" two integer variable is declared, in which the "i" variable holds a value.

In the next step, if block is defined, that checks "marks" value is less than "i", if the value is true, it will print "fail and try again".

Otherwise, it will go to the else block, in this, it will print "You are qualified".

You might be interested in
What is the Documenter?
baherus [9]

Answer:

 In the database, the documenter is basically used to display the properties of the selected object and use the microsoft access to display the particular object.

The database documenter basically created a particular document and report which basically contain proper detailed information and data for the every selected object.

Then, after creating the report we can easily open in the print for previewing the report in the microsoft access.     

7 0
3 years ago
Python exercise grade 10
Marysya12 [62]

while True:

   num = int(input("Enter a number: "))

   if num == 0:

       break

   first = num // 100

   second = (num // 10) - (first * 10)

   third = (num - (first * 100)) - (second * 10)

   reversed_digit = (third * 100) + (second * 10) + first

   if 9 < num < 100:

       reversed_digit = reversed_digit // 10

   elif num < 10:

       reversed_digit = reversed_digit//100

   print("The reversed digit is:",reversed_digit)

I wrote my code in python 3.8. I hope this helps.

3 0
3 years ago
The Danger zone around a robot is?
mojhsa [17]

maybe a EMP. tell me if im right

3 0
3 years ago
Read 2 more answers
What are some ways in which reading and writing have changed in our newly networked world
olga_2 [115]
Reading and writing have given us both a way to pass on knowledge and learn things we cant learn first hand.<span />
3 0
4 years ago
What item on a business card is generally the most prominent?
AveGali [126]
The most prominent
Company name that's most important
3 0
3 years ago
Read 2 more answers
Other questions:
  • identify three of the many shared ethical standards among businesses that are incorporated in codes of ethics
    6·2 answers
  • (Game Design) Which of the following is NOT a name of a popular digital sculpting application?
    13·1 answer
  • Technology offers a variety of rich opportunities available to teachers and students. According to Inan and Lowther (2010), ther
    6·1 answer
  • Can someone tell me how to use the Human machine language for beginners? or websites I should use.​
    7·1 answer
  • Which of the following is not a protocal? <br><br>A) HTTP<br>B) FTP<br>C) WWW<br>D) HTTPS​
    15·2 answers
  • How does violating the SOLID principles make code hard to test?
    5·1 answer
  • Which tool should be used when a fastener, such as a lug nut, is extremely tight
    6·2 answers
  • Which of these is an example of a mobile app?
    12·2 answers
  • The PowerPoint view in which you can edit the slide master is called ______________.
    7·1 answer
  • Which of the following is not a valid Java identifier? a. Factorial, b. anExtremelyLongldentifierlfYouAskMe, c. 2ndLevel, d. Iev
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!