Posts

Showing posts with the label ___๐•ฎ ๐–•๐–—๐–•๐–Œ๐–—๐–†๐–’๐–Ž๐–“๐–Œ__

๐•ป๐–—๐–Ž๐–“๐–™๐–‹() && ๐•พ๐–ˆ๐–†๐–“๐–‹()__In _C_☠️

Image
:- printf() and scanf() in C__. :- The printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file). printf() function__๐Ÿ‘‡๐Ÿป :-  The  printf() function  is used for output. It prints the given statement to the console.The syntax of printf() function is given below:-๐Ÿ‘‡๐Ÿป printf( "format string" ,argument_list) The  format string  can be %d (integer), %c (character), %s (string), %f (float) etc. scanf() function :-  The  scanf() function  is used for input. It reads the input data from the console. scanf( "format string" ,argument_list);    Program to print cube of given number :-  Let's see a simple example of c language that gets input from the user and prints the cube of the given number. #include<stdio.h>      int  main(){     int  number;   ...