- 1

5 table

what is the coding of table of 5 in c++

17th Jul 2016, 1:41 PM
Kunal Patel
Kunal Patel - avatar
3 Respuestas
+ 1
<#include iostream.h> void main() { int i=1; for(i=1;i<11;i++) { cout<<(5*i); return 0; } }
17th Jul 2016, 1:47 PM
Bhoomi
Bhoomi - avatar
+ 1
#include <iostream> using namespace std; int main() { int num,i; cout<<"Enter a number:\n "; cin>>num; cout<<"Entered number:"<<num<<endl; for(i=1;i<11;i++) { cout<<num*i<<endl; } return 0; }
17th Jul 2016, 2:46 PM
Karan Luther
Karan Luther - avatar
0
#include<iostream> using namespace std: int main() { int num,i; cout<<"Enter the number for which the table is to be shown:"; cin>>num for(i=1;i<=10;i++) { cout<<num<<"x"<<i<<"="<<num*i; } return 0; }
17th Jul 2016, 5:14 PM
Vignesh Hari
Vignesh Hari - avatar