Write a C program to convert Centigrade temp into Farenhite temp.
#include<stdio.h> #include<conio.h> main() { float a,b; printf("\n Enter any C temp"); scanf("%f",&a); b=((9.0*a)/5.0)+32.0; printf("\n The F temp=%f",b); getch(); }
Output:
Write a C program to check a number is even or odd.
Explain two-phase locking protocol.
Write a C program to print pattern below:
*
* *
* * *
* * * *
Write the recursive algorithm to find x^ n.