Computer Programming1 - Midterm Exam
Computer Programming1 - Midterm Exam
Midterm Examination
1. Write a program in C that prompts the user to input a Celsius temperature and outputs
the equivalent temperature in Fahrenheit. The formula to convert the temperature is:
F = 9/5 C + 32, where F is the Fahrenheit temperature and C is the Celsius temperature.
#include<stdio.h>
main()
{
int a[] = {10, 20, 30};
printf("%d", *a+1);
}