Read OnLine Cpp Program Example
2 - VARIABLE CONCEPT | |
---|---|
PRAC 1 | PRAC 2 |
//wap to print addition #include<iostream.h> #include<conio.h> void main() { int a,b,ans; clrscr(); a=5; b=7; ans=a+b; cout<<ans; getch(); } ------output------ 12 |
//wap to print addition #include<iostream.h> #include<conio.h> void main() { int a,b,c,ans; clrscr(); a=5; b=7; c=23; ans=a+b+c; cout<<ans; getch(); } -----output----- 35 |
Previous | Next |
Download | Download |