create account

learn by hanitasteemer

View this thread on: hive.blogpeakd.comecency.com
· @hanitasteemer ·
$12.93
learn
i am going to share simple program in c language . i hope you learn it 


#include<stdio.h>
main()
{
	int a,b;
	for(a=1;a<=5;a++)
	{
		for(b=1;b<=a;b++)
		{
			printf("%d",b);
		}
		printf("\n");
	}
	return 0;
}

out put of this program is 
1
12
123
1234
12345

if we change ,i mean if we write a in printf statement out will be diffrent.

#include<stdio.h>
main()
{
	int a,b;
	for(a=1;a<=5;a++)
	{
		for(b=1;b<=a;b++)
		{
			printf("%d",a);
		}
		printf("\n");
	}
	return 0;
}
out is :
1
22
333
4444
55555

i hope you learn it .
thanks for watching stay tuned:
👍  , , , , , , , , , , , , , , , ,
properties (23)
authorhanitasteemer
permlinklearn
categorycoding
json_metadata{"tags":["coding","with","me","include"],"app":"steemit/0.1","format":"markdown"}
created2018-01-02 13:13:39
last_update2018-01-02 13:13:39
depth0
children2
last_payout2018-01-09 13:13:39
cashout_time1969-12-31 23:59:59
total_payout_value10.379 HBD
curator_payout_value2.546 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length561
author_reputation7,847,092,471,000
root_titlelearn
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,556,645
net_rshares1,080,472,374,111
author_curate_reward""
vote details (17)
@appreciator ·
<p>This post has received gratitude of 0.24 % from @appreciator thanks to: @hanitasteemer.</p>
properties (22)
authorappreciator
permlinkre-hanitasteemer-learn-20180107t210613909z
categorycoding
json_metadata{"tags":["coding"],"app":"drotto/0.0.3rc1"}
created2018-01-07 21:06:24
last_update2018-01-07 21:06:24
depth1
children0
last_payout2018-01-14 21:06:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length95
author_reputation55,801,543,512,306
root_titlelearn
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,843,953
net_rshares0
@upme ·
re-hanitasteemer-learn-20180107t193815705z
You got a 0.23% upvote from @upme requested by: @hanitasteemer. <br> Send at least 1.5 SBD to @upme with a post link in the memo field to receive upvote next round. <br> To support our activity, please vote for my master @suggeelson, as a [STEEM Witness](https://steemit.com/~witnesses)
properties (22)
authorupme
permlinkre-hanitasteemer-learn-20180107t193815705z
categorycoding
json_metadata{"app":"postpromoter/1.6.0"}
created2018-01-07 19:38:15
last_update2018-01-07 19:38:15
depth1
children0
last_payout2018-01-14 19:38:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length286
author_reputation584,696,346,293
root_titlelearn
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,828,895
net_rshares0