

InterviewSolution
Saved Bookmarks
1. |
How to write c++programe |
Answer» We must include header fileVariable declarationOutputInputEndExample as follows://To know sum of 3 numbers#include<iostream.h>int main(){int a,b,c,sum=0;cout<<"enter a,b,c values";cin>>a>>b>>c;sum=a+b+c;return 0;}Output:-if we give a=5,b=9,c=11,Then sum=5+9+11SUM=25? | |