{"id":44,"date":"2021-10-31T14:45:00","date_gmt":"2021-10-31T14:45:00","guid":{"rendered":"https:\/\/rijankc.com.np\/2021\/10\/31\/wap-to-enter-name-and-marks-of-three-subjects-print-average-marks\/"},"modified":"2024-11-04T09:32:41","modified_gmt":"2024-11-04T03:47:41","slug":"wap-to-enter-name-and-marks-of-three-subjects-print-average-marks","status":"publish","type":"post","link":"https:\/\/rijankc.com.np\/?p=44","title":{"rendered":"WAP to enter name and marks of three subjects &#038; print average marks"},"content":{"rendered":"<div style=\"text-indent: 0px;\"><b>Question:<\/b><\/div>\n<div style=\"text-indent: 0px;\"><span style=\"text-indent: -0.25in;\"><b>Write a program to enter name and marks of three subjects. Find out the average and print the output.<\/b><\/span><\/div>\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: left;\"><b>Answer:<\/b><\/div>\n<div style=\"clear: both; text-align: center;\">\n<div style=\"clear: both; text-align: center;\">\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">DEFSTR n<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">DEFINT a\u2013e<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">INPUT &#8220;Enter Name of Student:&#8221;; n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">INPUT &#8220;Enter Marks of English :&#8221;; a<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">INPUT &#8220;Enter Marks of Nepali :&#8221;; b<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">INPUT &#8220;Enter Marks of Maths :&#8221;; c<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">LET d = a+b+c<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">LET e = d\/3<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Name of Student:&#8221; ; n\u00a0 \u00a0 \u00a0 \u00a0<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Marks of English :&#8221; ; a<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Marks of Nepali :&#8221; ; b<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Marks of Maths :&#8221; ; c<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Total Marks&#8221; ; d<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">PRINT &#8220;Average Marks&#8221; ; e<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0.0001pt 0.25in; text-align: left; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\">END<\/span><\/p>\n<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\">\n","protected":false},"excerpt":{"rendered":"<p>Question: Write a program to enter name and marks of three subjects. Find out the average and print the output. &nbsp; Answer: DEFSTR n DEFINT a\u2013e INPUT &#8220;Enter Name of Student:&#8221;; n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 INPUT &#8220;Enter Marks of English :&#8221;; a INPUT &#8220;Enter Marks of Nepali :&#8221;; b INPUT &#8220;Enter Marks of Maths :&#8221;; c LET d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[115,114],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","category-wap"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":2,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":418,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/media\/736"}],"wp:attachment":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}