Skip to main content

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 it is uppercase or lower case.

3.4 Take two integer number e.g. a and b as input and print “Yes” it is a divisible by or “No” it not.

3.5 Check whether three integer numbers are equal or not.

3.6 Take Celsius temperature as input and convert into Fahrenheit temperature. 

3.7 Write a program to printf() ASCII Value of any Char.

Comments

Popular posts from this blog

Program_function_02

Adding two Integer number using Function. /* Adding two Integer number using Function.*/  #include <stdio.h> int sum( int x, int y); /* function prototype */ int sub( int x, int y); int mul( int x, int y); int div( int x, int y);  /* function main begins program execution */  void main( )  {     sum (5,7);     sub (10,5);     mul (10,5);     div (10,5);  } /* end main */ /* Function maximum definition */ /* x, y and z are parameters */ int sum( int x, int y) {     printf ("%d", x+y);     getch(); } /* end function maximum */ int sub( int x, int y) {     printf ("%d", x-y);     getch(); } int mul( int x, int y) {     printf ("%d", x*y);     getch(); } int div( int x, int y) {     printf (...

How to make a Calculator -(Part-4) of using Visual Basic2010

Calculator  - Visual Basic 2008 / 2010 Page 4 The Zero Button: Double click on the zero button and add the following highlighted code: Private Sub Button14_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click If Button1.Text = Label1.Text Then Button1.Text = "0." ElseIf Button1.Text = "0." Then Button1.Text = "0." ElseIf Button1.Text = "0" Then Button1.Text = "0." ElseIf Button1.Text = Label3.Text Then Button1.Text = "0." Else Button1.Text = Button1.Text & "0" End If End Sub The Decimal Button: Double click on the decimal button and add the following highlighted code: Private Sub Button15_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click If Button1.Text = "0." Then Button1.Text = "." ElseIf Button1.Text = Label3.T...

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.