Question

what is output #include<stdio.h> pint main() { int i, j, total; for ( 2 { printf(\n); for ( 2 { total = i + j; printf(%d, total); بہا }

0 0
Add a comment Improve this question Transcribed image text
Answer #1

# STAY HOME # STAY SAFE

#include<stdio.h>
// main function
int main()
{
int i,j,total;
// run loop for i from 1 to 61 with increment of 10
for(i=1;i<=61;i=i+10)
{
printf("\n");
// run loop of j from 0 to 6
for(j=0;j<=6;j++)
{
// add i and j
total=i+j;
// display result
printf("%5d",total);
}
}
getchar();
return 0;
}

L.l. Result 1 $gcc -o main *. $main { 2 4 5 1 11 21 31 0. Execute > Share main.c STDIN #include<stdio.h> 2 // main function 3

Add a comment
Know the answer?
Add Answer to:
what is output #include<stdio.h> pint main() { int i, j, total; for ( 2 { printf("\n");...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT