Skip to main content

Posts

Showing posts from November, 2012

C Program01 Chap01: Area of Squre

/*Prime.Chapter_01/17 Write a program for Area of Squre*/   //document #include<stdio.h>    //Header file #include<conio.h>   //Header file Preprocessor Directive #define N 10        //Symbolic constant     void main()     //main program starts {     int area;       //variable declaration     area = N*N;     //process stmt      printf("Area of square:\n"); // o/p stmt     printf("%d", area);            // to show the output visible     getch();     return 0; }   // Program ends.

Programming in C

C Fundamentals                          Chapter -02 2.1 Print Hello BUBT. 2.2 Print your Name . 2.3 Write a program to the Addition or unary plus/Subtraction or unary minus Multiplication/Division/Modulo Division.                                                   2.4 Print an integer number using printf() function. 2.5 Print an integer number using printf () function which is taken from the user. 2.6 Take input of 3 integer number using scanf () function and calculate sum of them. 2.7 Take a character input and its corresponding ASCII value. 2.8 Take an integer (0<N<128) input and print its corresponding Character. 2.9 Print a floating point number using printf () function. Operators and Expressions            Chapter -03 3.1 Write a program on odd and even.  (Using if else and conditional operator.) 3.2 Find out the maximum and minimum number between three Integer numbers. 3.3 Take a character input find out