#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
int main()<\/p>\n
(on the first line, you declare the integers you wanna use for the code)<\/p>\n
(the second line specifies what is going to be done)<\/p>\n
(on the third line you are just asking for the first number)<\/p>\n
cin>>num1;( this new line is an input, where the person is going to write the number in the console after is asked for)<\/p>\n
cout<<“give me the second number”<<endl;<\/p>\n
cin>>num2; (same as the other, this is an input of the other number)<\/p>\n
cout<<“the result is: “<< num1*num2 <<endl; ( this time after the “<<” you write the equation, because there is no need to declare another variable an insert it here, this time the program does it here and just shows you the result.<\/p>\n
then you end the line with the “endl;”<\/p>\n
on this code you are showing and asking for in the console. this is a basic output and input<\/p>\n
}<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#Mastery10on this code there is a basic output and outputthe first thing you gotta do is:#include <iostream>using namespace std;int main()(on the first line, you declare the integers you wanna use for the code) (the second line spec… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":99,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95,79],"class_list":["post-5911","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","category-tc1017blogs","tag-include","tag-mastery10"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=5911"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5911\/revisions"}],"predecessor-version":[{"id":5912,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/5911\/revisions\/5912"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=5911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=5911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=5911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}