Introduction To Programming - CS201 Power Point Slides Lecture 04
Introduction To Programming - CS201 Power Point Slides Lecture 04
Lecture 4
Key Words of C
main
if
else
while
do
for
Memory
x=2+4;
= 66 ;
Memory
a b
x=a+b;
x
#include <iostream.h>
main ( )
{
int age1, age2, age3, age4, age5, age6, age7, age8, age9, age10 ;
int TotalAge ;
int AverageAge ;
In C
y = a*x*x + b*x + c
a*b%c +d
a*(b%c) = a*b%c
?
Discriminant
b2 - 2a
4c
= b*b - 4*a*c /2 *a Incorrect
answer
Solution
}
Special Character Newline
\n