Answer Posted / sathish kumar .k
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,i;
int sum=0;
clrscr();
printf("Enter Two Nos");
scanf("%d%d",&a,&b);
for(i=0;i<a;i++)
sum=sum+1;
for(i=0;i<b;i++)
sum=sum+1;
printf("Sum:%d",sum);
getch();
}
| Is This Answer Correct ? | 18 Yes | 26 No |
Post New Answer View All Answers
Place the #include statement must be written in the program?
What is a #include preprocessor?
What is the size of empty structure in c?
What is call by value in c?
Is there a way to jump out of a function or functions?
Why shouldn’t I start variable names with underscores?
while initialization of array why we use a[][2] why not a[2][]...?
Write a program to show the change in position of a cursor using c
What is a program flowchart and explain how does it help in writing a program?
Is array a primitive data type in c?
What is this infamous null pointer, anyway?
What does s c mean in text?
Explain what is the difference between #include and #include 'file' ?
What is ponter?
Give me the code of in-order recursive and non-recursive.