Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
~375 People Reached
Favorite Forums
this program i made.. should take an input 'no' from the user.. and print the following pattern.. 0 0 n+1 0 n+1 n+2 0 n+1 n+2 n+3 0 n+1 n+2 n+3 n+4 ....... n 0 n+1 n+2 n+3 n+4.. n-1 0 n+1 n+2 n+3 n+4 0 n+1 n+2 n+3 0 … |
|
[CODE]#include<stdio.h> #include<conio.h> int main() { int no; scanf("%d", &no); printf("%d %d", no,no++); getch();return 0; }[/CODE] the output of this program is '4 3'.. my questino is WHY? this program should first print the number which is entered.. and then when it prints the next number it should add 1 to … |