🎗INTRODUCTION TO C PROGRAM MING🎯
~ The c programming language was designed or invasion by "Dennis Ritchie🧓"at Bell laboratories in the early 1970s📝
~ INFLUENCED BY🪄
🧩ALGOL 60[1960]
🧩CPL[CAMBRIDGE,1963]
🧩BCPL[MARTIN RICHARD,1967]
🧩B[KEN THOMPSON,1970 ]
~TRADITION C:
🧩The C programing language by Brian Kernighan and Dennis Ritchie,2 edition, Prentice Hell.
🧩Referred to K&R
~ Standardized in 1989 By [ANSI]("AMERICAN NATIONAL STANDARDS INSTITUTE") Know as ANSI.
~ The c programming language was designed or invasion by "Dennis Ritchie🧓"at Bell laboratories in the early 1970s📝
~ INFLUENCED BY🪄
🧩ALGOL 60[1960]
🧩CPL[CAMBRIDGE,1963]
🧩BCPL[MARTIN RICHARD,1967]
🧩B[KEN THOMPSON,1970 ]
~TRADITION C:
🧩The C programing language by Brian Kernighan and Dennis Ritchie,2 edition, Prentice Hell.
🧩Referred to K&R
~ Standardized in 1989 By [ANSI]("AMERICAN NATIONAL STANDARDS INSTITUTE") Know as ANSI.
#1_code "HELLO WORLD 🌎"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
TO REMEMBER FUNCTION FOR ALL PROGRAM 😳
✓very easy to remember
#include <stdio.h> #include<conio.h>
Void main()
{
getch();
}
To write function the program will not compile.😱
~ the contents of stdio.h ("standard input and output") file in the program
~The stdio.h file contains functions such as scanf() and printf() to take input and display output respectively.
~The execution of a C program starts from the main() function.
~ In this program, printf("Hello world!") displays Hello World! text on the screen.☺️
~"The getch" in a non-standard function used to receive a character as input from the user.👍
~ To write this ; function for end of the statment📌
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
TO REMEMBER FUNCTION FOR ALL PROGRAM 😳
✓
#include <stdio.h> #include<conio.h>
Void main()
{
getch();
}
To write function the program will not compile.😱
~ the contents of stdio.h ("standard input and output") file in the program
~The stdio.h file contains functions such as scanf() and printf() to take input and display output respectively.
~The execution of a C program starts from the main() function.
~ In this program, printf("Hello world!") displays Hello World! text on the screen.☺️
~"The getch" in a non-standard function used to receive a character as input from the user.👍
~ To write this ; function for end of the statment📌
#3_code "create a F letter🫵"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
#include<stdio.h>
#include <conio.h>
void main ()
{
Printf("########\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
Printf ("########\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
getch();
}
output:
########
##
##
##
########
##
##
##
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
#include<stdio.h>
#include <conio.h>
void main ()
{
Printf("########\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
Printf ("########\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
Printf("##\n");
getch();
}
output:
########
##
##
##
########
##
##
##
~ "int" stands for integer, which is a data type used to store whole numbers (positive, negative, or zero).
~ %d is a format specifier used in the printf() and scanf() functions to format and display or read integer values
~ %d is a format specifier used in the printf() and scanf() functions to format and display or read integer values