Answer:
The program to this question can be given as follows:
Program:
#defining variable quarters, dimes, and nickels.
quarters=int(input("Enter value of quarters: ")) #input value by user dimes=int(input("Enter value of dimes: ")) #input value by user nickels=int(input("Enter value of nickels: ")) #input value by user
#defining variable pennies
pennies = ((25*quarters)+(10*dimes)+(5*nickels))
#calculate value in pennies variable
print('Total number of coins in pennies is: ',pennies)#print value
Output:
Enter value of quarters: 3
Enter value of dimes: 2
Enter value of nickels: 1
Total number of coins in pennies is: 100
Explanation:
In the above python program code, firstly three variable "quarters, dimes, and nickels", all of these variable uses input function, that is used to take input value from the user side, in these variable, an int is used that defined, that user input only integer value.
- After taking input from the user a new variable "pennies" is defined, which is uses the user input values and calculates its addition.
- In the next line, print function is used, which uses variable "pennies" to print its calculated value.
bad graphics, slow running ,bad connection
I believe the answer you are looking for is what's called an assignment statement. In computer programming, an assignment statement sets and/or resets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. Also, in most imperative programming languages, the assignment statement or expression is a fundamental construct.
Answer:
// here is code in C++.
#include<iostream>
using namespace std;
int main()
{
// declare variables
double num1, num2, mun3, t;
cout << "Enter three numbers: ";
// read the three numbers
cin >> num1 >> num2 >> mun3;
//sort the three numbers
if( num1>num2 )
{
t = num1;
num1 = num2;
num2 = t;}
if( num2>mun3 ){
t = num2;
num2 = mun3;
mun3 = t;}
if( num1>num2 ){
t = num1;
num1 = num2;
num2 = t;
}
// print the output
cout<<"numbers in ascending order:";
cout << num1 << " " << num2 << " " << mun3 << endl;
return 0 ;
}
Explanation:
Declare three variables to store the input. Read the value of all three variables. If first number is greater than second, then with the help of variable "t" swap the value of first and second.after that if second is greater than third number, swap them.In last if first number is greater than second one then swap them. This will sort the three numbers in ascending order.
Output:
Enter three numbers: 3 7 2
numbers in ascending order:2 3 7
Hi i have played LoL for 3 years, i prefer the music in True Damage but Visually in the original K/DA the outfits and video itself was great.