Hello Word – First C program

C Programming Tutorial

Hello Word – First C program #include <stdio.h> int main() { // printf() displays the string inside quotation printf(“Hello, World!”); return 0; } Lets understand “Hello, World!” program The #include <stdio.h> is a pre processor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program. The stdio.h file contains functions such as scanf() and print() to take … Read more

Scanf() : Receiving input in C program

C Programming Tutorial

In the First C Program discussed earlier (same has been also mentioned below for the reference) we assumed the values of p, n and r to be 1000, 3 and 8.5. Every time we run the program we would get the same value for simple interest. If we want to calculate simple interest for some other … Read more