To convert temperature in Celsius to Fahrenheit scale.
// To convert temperature in Celcius to Fahrenheit scale. #include <stdio.h>#include <conio.h>int main(){ float dc, fer; printf("Enter temperature in Degree Celcious "); scanf(...
C Program to find sum of two numbers
#include<stdio.h>
int main()
{
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
}
Output :
Enter two no: 5 6
Sum : 11
Please Log In to ask your question.
what does \n and %d mean?
Here, in C programming \n is an escape character that helps to create a new line whereas %d is a format specifier that allows to specify only Integer values.