0% found this document useful (0 votes)
29 views

Prgramming Assignment One

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Prgramming Assignment One

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MWABA ANTHONY D2157

CLASS EXERCISE QUESTION ONE

START

READ MARKS

IF MARKS >=90 NO

YES
IF MARKS >= 80
YES NO

GRADE = B NO
GRADE = A IF MARKS >= 65

YES

GRADE = C GRADE = D

Print grade

END

QUESTION 2

/*MWABA ANTHONY program to find the sum of first 50 natural numbers */


Main ()
{
int num, sum = 0;
for (num = 1; num <= 50; num++)
{
sum = sum +num;
}
printf("Sum = %d\n",sum);

}
flowchart for calcula ng the simple interest using the formula I = (P * T * R)/100

START

READ P,T,R

I=P*T*R/100

PRINT I

END

You might also like