2
--------------FORMAT---------------- Margin TBRL = 1 inch Font Style = Arial Font Size = 12 Line Spacing 1 GREEN paper orocco !hort "EA"L#NE$ A%G%ST 1&' 2(1) ------------*ONTENT---------------- #ncl+,e rogra "e!cription #ncl+,e *oent! o!!i.le rogra! 1/ Matheatical *op+tation! 0 2/ Si p le i 0 /# el!e 0 )/ or l oop 0 0/ 3hi le lo op 0 4/ ,o 3hile loop 0 SAMPLE CONTENT A/ MA T5EMA T#*AL *OM%T A T#ON 1/ A pro gra that 3ill cop+te the !+ o t3o inp+tte, integer!/ *O"E #include <stdio.h> //header file for printf and scanf #include<conio.h>// main()// { Int x, y, sum;// variale declaration section.!eclares x and y clrscr();//erase the previous output printf("his pro$ram % ill compute the sum of a t% o inputted inte$ers& ');//displays the strin$ printf("nnter inte$er *& ');//prompts the userto input a value for first va scanf("+d&,x); printf("nnter inte$er -& '); scanf("+d&,y); sum xy; printf("the sum of +d +d is +d',x,y, sum); $etch(); 0

Document1

Embed Size (px)

DESCRIPTION

e

Citation preview

7/17/2019 1

http://slidepdf.com/reader/full/1563db8ad550346aa9a95e4f1 1/2

--------------FORMAT----------------

Margin TBRL = 1 inchFont Style = Arial

Font Size = 12Line Spacing 1GREEN paper orocco !hort"EA"L#NE$ A%G%ST 1&' 2(1)

------------*ONTENT----------------

#ncl+,e rogra "e!cription#ncl+,e *oent!o!!i.le rogra!

1/ Matheatical *op+tation! 02/ Siple i 0/ # el!e 0)/ or loop 00/ 3hile loop 04/ ,o 3hile loop 0

SAMPLE CONTENT

A/ MAT5EMAT#*AL *OM%TAT#ON1/ A progra that 3ill cop+te the !+ o t3o inp+tte, integer!/

*O"E

#include <stdio.h> //header file for printf and scanf #include<conio.h>//main()//{Int x, y, sum;// variale declaration section.!eclares x and yclrscr();//erase the previous outputprintf("his pro$ram %ill compute the sum of a t%o inputted inte$ers& ');//displays thestrin$printf("nnter inte$er *& ');//prompts the userto input a value for first va

scanf("+d&,x);printf("nnter inte$er -& ');scanf("+d&,y);sum xy;printf("the sum of +d +d is +d',x,y,sum);$etch();0

7/17/2019 1

http://slidepdf.com/reader/full/1563db8ad550346aa9a95e4f1 2/2

1utput&

his pro$ram %ill compute the sum of t%o inputted inte$ers

nter inte$er *& -

nter inte$er -& -

he sum of - - is 2