4. Let’s Begin....
What is C
• C is a
programming
language
• Created by
DENNIS
RITCHIE.
9/27/2013 created by Asif khan
5. Our very first program.
-: To find simple interest :-
# include <stdio.h>
int main()
{ /* opening braces*/
int p r t si; /*variable declaration*/
Printf(“enter value of p r t”); /*msg for user */
Scanf(“%d%d%d”, &p &r &t); /*input from user*/
Si=p*r*t; /*simple interest formula*/
Printf(“Simple interest is %d”, si);/*answer of user query*/
Return 0;
} /*closing braces*/
/* this is comment*/
9/27/2013 created by Asif khan
6. Soon there will be next
program and any topic i will
publish for good bye....
9/27/2013 created by Asif khan