C Language Tutorials by Ghulam Murtaza Dahar - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Output

Case 1: 9876

Case 2:9876

Case 3:987.65

Case 4:988

Case 5:9.876543e+002

Variations in Input for integer and floats

#include <stdio.h>

int main(){

int a,b;

float c,d;

printf("Enter two intgers: ");

/*Two integers can be taken from user at once as below*/

scanf("%d%d",&a,&b);

printf("Enter intger and floating point numbers: ");

/*Integer and floating point number can be taken at once from user as below*/

scanf("%d%f",&a,&c);

return 0;

}

Similarly, any number of input can be taken at once from user.

C Programming Operators

Operators are the symbol which operates on value or a variable. For example: + is a operator to perform addition.

C programming language has wide range of operators to perform various operations. For better understanding of operators, these operators can be classified as:

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business