main()
{
int j;
while (j<=10)
{
printf ("\in%d",j);
i++;
}
}
what will be the output?
Answers
Answered by
14
It is a program from C language .
Correct Cōde :
#include<stdio.h>
main(){
int j; //Default value of j is zero
while (j<=10){
printf("\n%d",j);
j++;
}
}
Output :
0
1
2
3
4
5
6
7
8
9
10
★ ══════════════════════ ★
Common Mistakes Done By C - Programmer :
➠ Missing semi-colon (;) while moving to next line except in case of functions
➠ Missing f in printf
There is no indentation in C language , so prograṁmers will definitely be happy with this :)
Attachments:
Similar questions