Computer Science, asked by dheerajshaik, 1 month ago

input and output functions in c. find the product of two numbers.​

Answers

Answered by MrTSR
1

Answer :

ɪɴᴘᴜᴛ ꜰᴜɴᴄᴛɪᴏɴ: The function that is used to read the data input is known as Input function.

ᴏᴜᴛᴘᴜᴛ ꜰᴜɴᴄᴛɪᴏɴ: The function that are used to display the data as output is known as output function.

Some I/O functions in C -

  • printf( ) -  formatted output function
  • scanf( ) - formatted input function
  • getchar( ) - single character input
  • putchar( ) - single character output
  • gets( ) - un-formatted input function
  • puts( ) - un-formatted output function

All these functions are defined and contained in the "stdio.h" header file.

C Program to find the product of two numbers.

#include<stdio.h>

int main()

{

   int a = 10;

   int b = 10;

   printf("The product of a and b is %d \n",a * b);

 return 0;

}

OUTPUT.

The product of a and b is 100.

Similar questions