Basics of C
Basics of C
//221370151
#include <stdio.h>
#include <string.h>
int main()
{
//Mannual 2 (a) task 4
float fahrenheit, celsius;
printf("Enter temperature in Fahrenheit: ");
scanf("%f", &fahrenheit);
celsius = (fahrenheit - 32) * 5 / 9;
printf("Temperature in Celsius: %f\n", celsius);
char word[50];
printf("\nEnter a word: ");
scanf("%s", word);
for(int i = 0;word[i] != '\0';i++){
printf("%c\n",word[i]);
}
return 0;
}