Q. If sum of two integer is 14 and if one of them is 8 then find other integer. Ans: Well, this is very simple. Simply, one integer is 8 and sum of two integers is 14. So, we need to subtract the number 8 from their sum of 14 to get the second number. So, the second number is: 14 - 8 = 6 C-Program of this task Code---> #include<stdio.h> int main () { int num1 = 8 , num2 , sum = 14 ; num2 = sum - num1 ; printf ( "The second number is: %d" , num2 ); return 0 ; }
In this C program we will print "Hello World", 10 times on the screen. We will use "body-less-loop" for this C-Program.
"Body-less-loop" : it means that the inner part(code block to be executed) of the loop will be empty and the loop will have a semi-colon(;) in it's end.
i.e:
for ( ..... ; ..... ; ..... ) ;
input:
Null.output:
"Hello World" will be printed on the screen, 10 times.
CODE---->
#include<stdio.h>
int main()
{
int i;
for(i=1;i<=10;printf(" Hello World ! \n",i++));
return 0;
}
hey! you did such a nice work.Check out program for prime number
ReplyDeleteThank You So Much Pavan.
ReplyDeleteWe will be happy to see your program.
Word count is an usefull tool to count Word, Line, Page and Character in multiple files and also you can calculate amount and generate reports. word count tool
ReplyDeleteSuch a great blog! I am looking for these kinds of blogs for last many days. Keep it up. Thanks for sharing it with us
ReplyDeleteBest online Coaching app
Best online teaching apps
Yes, Priya u are absolutely right..!
Delete
ReplyDeleteVery Informative and creative contents. This concept is a good way to enhance the knowledge. thanks for sharing.
Continue to share your knowledge through articles like these, and keep posting more blogs.
And more Information Data Labeling Service for Machine Learning
Ntreppearwa Aaron Stevens https://marketplace.visualstudio.com/items?itemName=9musjicerzu.Cosplay-Convention-Crisis-gratuita-2022
ReplyDeletespitinswitoc
0ingraphsur-o Sean Kalina https://www.yodfatstyle.com/profile/visionimeldaimelda/profile
ReplyDeletekefucoself
pidupres-ru_Columbia Nancy Evans Here
ReplyDeletetenminali
MconsperPalbu Tom Grable click
ReplyDeletevordentserga
adittog_pi Gina Glover Help & Manual Professional 8.3.1.5793
ReplyDeletePhoneTrans Pro 5.3.0.20220816
CCleaner pro
Soft Organizer Pro 9.26
myiberwari