Write a program to print table using for loop.
#include<iostream> using namespace std; int main() { int a; cout<<"enter the number to print table: "; cin>>a; for(int i=1;i<=10;i++) { cout<&…
#include<iostream> using namespace std; int main() { int a; cout<<"enter the number to print table: "; cin>>a; for(int i=1;i<=10;i++) { cout<&…
#include<iostream> using namespace std; int main() { int a; int i=1; cout<<"enter the number to print table: "; cin>>a; do { cout<<a<<…
Print the sum of two numbers: ----------------------------------- The sum of 29 and 30 is: 59 #include<iostream> using namespace std; int main() { int a,b,sum; cout<<"e…
Find Size of fundamental data types : ------------------------------------------ The sizeof(char) is : 1 bytes The sizeof(short) is : 2 bytes The sizeof(int) is : 4 bytes The sizeof(long) i…
#include<iostream> using namespace std; int main() { cout<<"Welcome you"; } Output:
Print the sum of two numbers: ----------------------------------- The sum of 29 and 30 is: 59 #include<iostream> using namespace std; int main() { int sum,a,b; cout<<"e…
#include<iostream> using namespace std; int main() { int hours,minutes; cout<<"enter your hours and minutes in 24 format:\n"; cout<<"enter your hours:…