Posts

SUM OF TWO NUMBERS

 #include<stdio.h> int main(){    int x,y;     // FIRST DEFINE THE DATATYPE ALONG WITH THE VARIABLE (EXAMPLE int FOR INTEGER)    printf("Enter number one:");    // WE USE SCANF TO INPUT THE NUMBER     // WE USE '&' FOR THE ADRESS    // %d--> integers type datatype example 5    // %f--> flost type datatype example 3.14    // %c--> character type datatype example 'A'    scanf("%d",&x);       // ITS MEAN INTEGER TYPE DATA STORED AT THE ADRESS OF X              printf("Enter number two:");    scanf("%d",&y);    int sum= x+y;    printf("sum of numbers is: %d",sum);    return 0; }

Hello World! program

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