User Input & Basic Programs Md. Alamgir Hossain Lecturer, Dept. of CSE, Prime University Mail: alamgir.cse14.just@gmail.com
User Input-scanf() function The scanf() function is used for input. It reads the input data from the console. scanf("format string", argument_list); Example: 1. scanf(“%d”, &n); If int n; 2. scanf(“%f”, &x); If float x;
Program for Addition of Two numbers
Program for Addition of Two numbers
Program for Addition of Two numbers
Program for Addition of Two numbers
Program for Addition of Two numbers
Program for Addition of Two numbers
Addition & Subtraction of Two numbers
Addition & Subtraction of Two numbers
Homework-01 01. Write a C program that can take 2 float values from user and perform addition, subtraction, multiplication and division.
Area of a Triangle h b Area A = .5 * h * b
Area of a Triangle in C
Homework-02 & 03 02. Write a C program to find the area of a circle. 03. Write a C program to find the area of a square.
Thank You

3. user input and some basic problem