#include<stdio.h>
void main()
{
int l,i,j;
printf("Enter number of lines");
scanf("%d",&l);
for(i=1;i<=l;i++)
{
for(j=1;j<=i;j++)
{
printf(" *");
}
printf("\n");
}
}
Tech Programming Ideas is one of the best places on the programming for programmers. Learn coding with Tech Programming Ideas tutorials. We are covered android programming, php, yii2 framework, javascript, mysql, vb.net etc.
WebView webView = (WebView)findViewById(R.id.webView);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl("http://yii2ideas.blogspot.com/p/blog-page.html");
xml code
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</WebView>
<uses-permission android:name="android.permission.INTERNET" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<ImageView
android:id="@+id/ivPhoto"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:padding="5dp"
android:layout_gravity="center"
android:src="@drawable/photo"
/>
</LinearLayout>