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

PHP course catalogs

Introduction   In this PHP course, you will learn Advanced level PHP with CodeIgniter framework, and how to execute scripts on your server. You will also learn about MySQL, html, CSS, JavaScript. You will also learn advanced level CSS, Database Normalization & Relation of Database. After attending the course, you can develop project using PHP framework CodeIgniter with MySQL. How participants will benefit after the course:   After attending this course, participants will be able to develop professional dynamic website using PHP framework CodeIgniter, design database with proper documentation, and develop Online Payment Method. Course Highlights:   . Complete package on web development  . Advanced JavaScript & Ajax  . PHP framework along with documentation process  . Client Side & Server Side Validation  . CI Framework Reporting  . TinyMce Editor & Searching  . SSL, File upload & Email  . Online Paym...

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 (...