Skip to main content

INTRODUCTION TO PROGRAMMING

c programming


Click here to watch this video on youtube and more from our channel

TO REGISTER FOR A FREE TRAINING ON OUR MOODLE PLATFORM,  KINDLY SUBMIT YOUR DETAILS HERE

Hello guys,  welcome to my blog,  I'll be taking you through an introduction to programming using C language. 

I'll be doing it on my phone,  its my assumption we all have access to a smartphone,  whether you are computer or phone don't freak out, the codes are just the same.

Am using cppdroid android app to do the coding,  to download cppdroid click here.

Lesson 1: My first program (Hello world!)

#include <stdio.h>
main()
{
    printf("Hello world!");
    return 0;
}

Every C program contains a function called main. This is the start point of the program. 
#include<stdio.h> allows the program to interact with the screen, keyboard and file 
system of your computer. You will find it at the beginning of almost every C program.

main() declares the start of the function, while the two curly brackets show the start 
and finish of the function. Curly brackets in C are used to group statements together as 
in a function, or in the body of a loop. Such a grouping is known as a compound 
statement or a block.
printf("This is a C program \n"); prints the words on the screen. The text
to be printed is enclosed in double quotes. The \n at the end of the text tells the 
program to print a new line as part of the output.

Most C programs are written in lower case letters. You will usually find upper case 
letters used in preprocessor definitions (which will be discussed later) or inside quotes 
as parts of character strings.
 
C is case sensitive, that is, it recognises a lower case letter and it's upper case 
equivalent as being different.

NB:Once you have made any changes don't forget to compile your source code for changes to be saved. This applies to new programs too. 


In case of questions,  you can post it in the comments section below or Whatsapp me


Lesson 2:

Comments

Popular posts from this blog

ACTIVATING MS OFFICE WITHOUT KEY

Step1 Open cmd as admin Step2 copy office directory Step3  Go to office directory, type cd on cmd then paste the office directory you copied e.g., for a 64-bit machine it will look like this. cd C:\Program Files (x86)\Microsoft Office\Office16 Step4 Type in the following commands into cmd then hit enter after every command: cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 cscript ospp.vbs /unpkey:BTDRB >nul cscript ospp.vbs /unpkey:KHGM9 >nul cscript ospp.vbs /unpkey:CPQVG >nul cscript ospp.vbs /sethst:kms8.msguides.com cscript ospp.vbs /setprt:1688 cscript ospp.vbs /act METHOD 2 Copy script https://gist.github.com/amitbd1508/fe64e926005c85d424e8e79a943b3b60 @echo off title Activate Microsoft Office 2019 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =========================

WINDOWS 7,8,10 Activator

Copy and paste into your notepad and save it with a .bat extension. Disable your windows security or antivirus then run it as administrator to activate your windows. @echo off title Windows 10 ALL version activator&cls&echo ************************************ &echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation... cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul cscrip

HOW TO ACTIVATE WINDOWS 10 USING CMD

  Don't have the original windows product key?  Follow the steps below. You must be connected to the internet to work. Don't forget to subscribe to my YouTube channel  here Video Tutorial Please note, DON NOT include the quotation marks, i.e "" have used them to show the beginning and end of the commands. Step 1: Open cmd as admin Step 2: Install KMS client key Use the command “slmgr /ipk your license key ” to install a license key (your license key is the activation key that corresponds to your Windows edition).  The following is the list of Windows 10 Volume license keys. Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9 Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43 Enterp