Monday, 11 May 2020

Program Perkalian For


#include<iostream>
using namespace std;

int main()
{
int a,b;
atas:
cout<<" Masukan Nilai Perkalian : ";cin>>b;
for(a=1;a<=10;a++)
{
cout<<a <<" X " <<b <<" = "<<a*b<<endl;
}



goto atas;
return 0;
}

No comments:

Post a Comment