Posts

Showing posts from 2017

WAP TO PRINT MULTIPLICATION TABLE OF ANY NUMBER.

Image
//WAP TO PRINT MULTIPLICATION TABLE OF ANY NUMBER. #include <stdio.h> #include <stdlib.h> #include<conio.h> int main() {     int n,i;     printf("\n \t\tPROGRAM TO PRINT MULTIPLICATION TABLE OF ANY NUMBER");     printf("\n\nENTER THE NUMBER WHOSE TABLE YOU WANT:");     scanf("%d",&n);     for(i=1;i<=10;i++)     {         printf("\n\t%d  *  %d =  %d",n,i,n*i);     }     getch();     return 0; }

WAP PROGRAM TO GET AREA AND CIRCUMFERENCE OF A CIRCLE FROM THE GIVEN RADIUS.

Image
#include <stdio.h> #include <stdlib.h> #include<conio.h> int main() {     int radius;     float area,circumference;     printf("\t\t\tENTER THE RADIUS OF THE CIRCLE(in cm):");     scanf("%d",&radius);     area=(float)22/7*radius*radius;     circumference=(float)2*22/7*radius;     printf("\n\n\n\t\t\tAREA=%.2fcm AND CIRCUMFERENCE=%.2fcm",area,circumference);     getch();     return 0; }

C program to convert temperature from Celius to fahrenhiet and vice versa

Image
This is the program that have been made with the basic knowlegde of C.So obviously don't requires any advanced knowledge of C. //WAP TO CONVERT TEMPERATURE FROM CELCIUS TO FAHRENHIET AND VICE VERSA. #include <stdio.h> #include<stdlib.h> #include <conio.h> flag=1; void c2f(float); void f2c(float);                              //FUNCTION declaration void worker(void); int main() {     worker();                                  //CALLING WORKER FUNCTION     return 0; } void worker(void) {     int i;     float tem;     printf("\n\t\t\t\tCONVERSION MENU\n\n");     printf(" 1.CELSIUS TO FAHRENHIET");     printf("\t\t2.FAHRENHIET TO CELSIUS");               //CONVERSION MENU     pri...