Computer Science, asked by arathinair317, 11 days ago

write a Q Basic programm to find the sum of 4 numbers​

Answers

Answered by BrainlyProgrammer
5

Answer:

CLS

PRINT "ENTER FOUR NUMBERS "

INPUT A, B, C, D

S=A+B+C+D

PRINT "SUM";S

END

Answered by atrs7391
3

\textsf{\textbf{\Large{\underline{Solution:}}}}

\texttt{CLS}

\texttt{SUM = 0}

\texttt{FOR I = 1 TO 4}

\texttt{{I}NPUT "ENTER NUMBER ";NUMBER}

\texttt{SUM = SUM + NUMBER}

\texttt{NEXT I}

\texttt{PRINT "THE SUM OF FOUR NUMBERS = ";SUM}

\texttt{END}

Similar questions