Answer:
// code to read grade
#include <stdio.h>
// main function
int main(void) {
// if grade is character
char grade;
// if grade is numeric then we can use int or double
// int grade;
// double grade;
printf("Enter your grade:");
// read grade from user
scanf("%c",&grade);
// print grade
printf("your grade is:%c",grade);
return 0;
}
Explanation:
To read a value, scanf() function is used from stdio.h.Read a grade from user and assign it to variable "grade".
Output:
Enter your grade:A
your grade is:A
// code to read die volt
#include <stdio.h>
// main function
int main(void) {
// variable
double die_volt;
printf("Enter die volt:");
// read die volt from user
scanf("%lf",&die_volt);
// print die volt
printf("Entered die volt is:%0.2lf",die_volt);
return 0;
}
Explanation:
Read the die volt from user and assign it to variable "die_volt" with the help
of scanf() function.
Output:
Enter die volt:220
Entered die volt is:220.00
Hi!
If I had to pick a social media platform for a clothing company's campaign I would choose Instagram due to its large following and tons of traffic, also the large number of female users, which for a clothing company is usually the target audience.
I would have originally said facebook, but due to recent policy changes that would not be my first choice.
-<span>ASIAX </span><span> </span><span>Frequent Answerer</span>
In Python, assume that a file containing a series of integers is named numbers.txt and exist on the computer's disk. Write a program that reads the entire numbers store in the file and calculates their total.
Here is what I have written but it does not run:
def. main():
out file=open('numbers.txt','r')
temp=outfile.readline()
total=0
while temp!='':
t=int(temp)
total=total+i
temp=outfile.readline()
outfile.close()
print('Total sum is:',total)
main()
Text file is a file named numbers.txt with the numbers 1-50 in it
Learn more:
- The sum of three consecutive integers is 186. what are the integers
brainly.com/question/1768254
Keywords: python, integers, computer, numbers, program
It's B.
As you go up, the air thins out, meaning it is less dense. Since there are less molecules that can transfer heat, the temperature is lower.
Answer:
1) You wanna say so let me<em> </em><u>check my chest, my breath right quick</u>
2) I'm a savage <u>Classy, bougie, ratchet </u>
3) All the kids are <u>depressed</u>
4) Close your eyes shut your mouth d<u>ream a dream and get us out</u>
5) She's the girl next door, <u>nice, but not in a heart that's pure</u>
Explanation: