C CODING FOR FREE
9 subscribers
1 photo
Download Telegram
Channel created
Channel name was changed to «C CODING FOR FREE»
🎗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.
#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📌
Programing Hello world📍

#include<studio.h >
#include<conio.h>
void main()
{
printf("HELLO WORLD! ")
getch();
}
OUTPUT

HELLO WORLD!
#2_code "print a your name👤"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
#include<stdio.h>
#include <conio.h>
void main ()
{
Printf("___");
getch();
}

What is a output _ ???



°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
1
#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:

########
##
##
##
########
##
##
##
Using \n is next line user
#4_code "create a c letter 💌"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

#include <stdio.h>
#include <conio.h>
void main ()
{
printf("\t#####\n");
printf("\t#\n");
printf("\t#\n");
printf("\t#\n");
printf("\t#####\n")
getch();
}

Output:

#####
#
#
#
#####
✓ Using \t is make a tap space
Ex... Using \t
~ a
Not using \t
~a
#5_code "add a two numbers 🔢"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=20,n;
n=a+b;
printf("value of a+b is %d",n);
getch();
}
OUTPUT:
value of a+b is 30
~ "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
#6_code "sub a two numbers 🔢"
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=20,n;
n=a-b;
printf("value of a-b is %d",n);
getch();
}
OUTPUT:
value of a-b is 10