Answer:
Console.WriteLine("Format Double: {0:n3}", num); //formatting output with 3 digit decimal point
Explanation:
Following are the program in c#
using System; // namespace
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tasks
{
class Program
2 // program2
{
static void Main(string[] args) // Main function
{
double num = 958254.73789621; // variables
Console.WriteLine("Format Double: {0:n3}", num); //formatting output with 3 digit decimal point
Console.Read();
}
}
}
Output:
Format Double : 958254.737
Here we have declared a variable num of type double which store the value num=958254.73789621. To do format with the double number i used a syntax {0:n3}. This syntax {0:n3}is separated with :(colon) here 0 represent the value before the decimal point that is 958254 and n3 represent the value upto 3 decimal points. Hence this statement give the output with three digit after the decimal point .
Answer:
How has the shift to locally grown produce decreased greenhouse emissions? 1 Large farms often create greenhouse emissions by poor farming practices. 2 Locally grown produce allows fewer dangerous toxins to seep into the soil and the atmosphere.
Answer:
The correct answer to the following question will be Option C (Volatile type of memory).
Explanation:
Random Access Memory, a variety of computer's memory which could be retrieved accidentally i.e., some memory can be obtained without any of the previous bytes being touched.
- Volatile memory is a type of a storage in computer that only retains its information or data while powering the appliance.
- Almost all of the RAM used in Pc's for the primary storage is unstable storage.
So, Option C is the right answer.
Answer:
21
Explanation:
The values of c that make it into the loop are 1, 4, 7.
The values that are added to sum are 3 higher, i.e., 4,7 and 10.
The sum of those is 21.
p.s. why did you not run the program yourself?