Posts

Showing posts from November, 2023

Difference between perfect square and a number that can be expressed as product of consecutive integers:

Image
A perfect square is a number that can be expressed as the product of an integer by itself or as the second exponent of an integer¹. For example, 1, 4, 9, and 16 are perfect squares because they are the squares of 1, 2, 3, and 4 respectively. A perfect square can also be written as x^2, where x is an integer. A number that can be expressed as a product of consecutive integers is a number that can be obtained by multiplying two or more integers that follow each other in order. For example, 6, 24, and 120 are numbers that can be expressed as products of consecutive integers because they are equal to 2 x 3, 2 x 3 x 4, and 2 x 3 x 4 x 5 respectively. A number that can be expressed as a product of consecutive integers can also be written as x(x + 1)(x + 2)...(x + n), where x and n are integers. The difference between a perfect square and a number that can be expressed as a product of consecutive integers is that a perfect square has only one factor pair that consists of the same integer, whi

Fiver special course with a great discount:

Image
  ali_softwares Fiverr Seller Hello friend I am Ali khan and i will build Mobile Apps for you, Different kinds of code in any computer language and I will sell online courses in half price. Hello every one today this post is for those who need fiver special course but cannot afford. So every who cannot afford should contact me I will help you and will provide you a great discount. 

C programing Lesson 1:

Image
Following are the few basic concept that must be understand before writing a program in C programing language. The C Character Set:                                             A character denotes any alphabet, digit or special symbol used to represent information. Variables And Constant:                   a variable is an entity that may change, whereas constant is an entity that does not change. In any C program we typically do lots of calculations. The results of these calculations are stored in computer’s memory. Like human memory, the computer’s memory also consists of millions of cells. The calculated values are stored in these memory cells. To make the retrieval and usage of these values easy, these memory cells ( also called memory locations ) are given names. Since the value stored in each location may change, the names given to these locations are called variable names. Consider the memory locations shown in Figure 1.3. Here 3 is stored in a memory location and a nam

What is C programing language ?

Image
A brief History And Introduction to C language:   C is a programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. In the late seventies C began to replace the more familiar languages of that time like PL/I, ALGOL, etc. No one pushed C. It wasn’t made the ‘official’ Bell Labs language. Thus, without any advertisement, C’s reputation spread and its pool of users grew. Ritchie seems to have been rather surprised that so many programmers preferred C to older languages like FORTRAN or PL/I, or the newer ones like Pascal and APL. But, that’s what happened. Possibly why C seems so popular is because it is reliable, simple and easy to use. Moreover, in an industry where newer languages, tools and technologies emerge and vanish day in and day out, a language that has survived for more than three decades has to be really good. An opinion that is often heard today is—“C has been already superseded by languages

What is a computer language

Image
  Computer language : A computer language is a way of telling a computer what to do. As we human understand different languages and communicate with one another similarly we also have to communicate with computer and tell  it to do some thing, so for this purpose we need a language that computer can understand because computer is not able to understand the general human languages we speak.   A computer language has a set of rules, words, symbols, and numbers that are used to write instructions for a computer. These instructions are called programs or software. The computer use these instruction and programs and perform the required task for the user. Different computer languages have different purposes and features. Types of computer languages : 1: Low level language 2: High level language Low level language:   Low-level languages are closer to the way computers work, using binary numbers (0 and 1) or symbols (called mnemonics) to represent the basic operations of the computer. Exam

C language program to find prime number

Hello  every one today this post is about how to write a C language program to find weather an input number is prime or not. I hope you will learn alot from it and if you dont understand so you can contact with Through +923429327224. I have also some online paid  cources but i will sell it to you in half price. #include <stdio.h> int main() {     int num, i, flag = 0;     printf("Enter a number: ");     scanf("%d", &num);     if (num <= 1) {         printf("%d is not a prime number.\n", num);         return 0;     }     for(i = 2; i <= num/2; ++i) {         if(num % i == 0) {             flag = 1;             break;         }     }     if (flag == 0)         printf("%d is a prime number.\n", num);     else         printf("%d is not a prime number.\n", num);     return 0; }