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
What is const keyword in c?
What is pass by value in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What's the best way of making my program efficient?
How can I get the current date or time of day in a c program?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Tell me when would you use a pointer to a function?
What is an lvalue?
What is the correct declaration of main?
Hai what is the different types of versions and their differences
Why is c platform dependent?
Can the “if” function be used in comparing strings?
Describe the difference between = and == symbols in c programming?
What is the difference between typedef and #define?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.