Upload
cexpertise
View
523
Download
5
Embed Size (px)
Citation preview
Structure of Program:-
Sum of the two Numbers:-
#include<stdio.h> int main() {Int a,b,c;Printf(“\n enter the value of a&b”);Scanf(“%d%d” &a,&b); c=a+b;Printf(“the sum is%d”,sum); return 0;}
Write a program calculate area of circle
#include <stdio.h> #include<conio.h> void main(){ float r;Printf(“enter the value of r”);Scanf(“%f”,&r);A=3.14*r*r;Printf(“\n the area of %d is” A) return 0;}
Program to print values as character and integers
Standard output:
Assignment Statement
Arithmatic operater
Arithmetic operators(cont’d)
Increment & Decrement operator
Solution: compute Volume
Exercise:
Arrays & pointer
Pointers
Fuctions
Structure & Unions
Attacking a projects