Skip to main content
C Programs:



1.C program to calculate simple interest



#include<stdio.h>
#include<conio.h>
void main()
{

float p,r,t,si;
clrscr(); //to clear the screen
printf(“Enter principal,rate and time;”);
scanf(“%f%f%f”,&p,&r,&t);
si=(p*r*t)/100;
printf(“nSI=%f”,si);
getch(); //to stop the screen
}

Comments

Popular posts from this blog

Some more abbreviations:-

Some more abbreviations:-  PDF        The Portable Document Format (PDF) (redundantly: PDF format) is a file format developed by Adobe in the 1990s to present documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems. Based on the PostScript language, each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, vector graphics, raster images and other information needed to display it. PDF was standardized as ISO 32000 in 2008, and no longer requires any royalties for its implementation. 2. CD  Compact disc (CD) is a digital optical disc data storage format that was co-developed by Philips and Sony and released in 1982. The format was originally developed to store and play only sound recordings (CD-DA) but was later adapted for storage of data (CD-ROM). Several other formats were further derived from these, including write-once audio and data st

Floats

Floats Floats are used in Python to represent numbers that aren't integers. Some examples of numbers that are represented as floats are 0.5 and -7.8237591. They can be created directly by entering a number with a decimal point, or by using operations such as division on integers. Extra zeros at the number's end are ignored.  >>> 3/4 0.75 >>> 9.8765000 9.8765 Computers can't store floats perfectly accurately, in the same way that we can't write down the complete decimal expansion of 1/3 (0.3333333333333333...). Keep this in mind, because it often leads to infuriating bugs!  As you saw previously, dividing any two integers produces a float. A float is also produced by running an operation on two floats, or on a float and an integer. >>> 8 / 2 4.0 >>> 6 * 7.0 42.0 >>> 4 + 1.65 5.65 A float can be added to an integer, because Python silently converts the integer to a float. However, this implicit conversion is

Python

Hello guy's welcome back for the new post in this section I'll try to complete the basic things which you need to understand about the python.  And also wanna say that after I start this section I'll complete every single topic about the python in every new post so keep tracking for upcoming post for more information about the python programing. Just now we start with the definition  Python:               Python is a high-level programming language, with applications in numerous areas, including web programming, scripting, scientific computing, and artificial intelligence. It is very popular and used by organizations such as Google, NASA, the CIA, and Disney. if you still don't have python installed in your PC so click on the link below:      Python 3.8.0 Welcome to Python! The three major versions of Python are 1.x, 2.x and 3.x. These are subdivided into minor versions, such as 2.7 and 3.3. Code written for Python 3.x is guaranteed

Tweet's